1 <?php
defined('SYSPATH') OR die('Kohana bootstrap needs to be included before tests run');
4 * @package Kohana/Image
7 * @copyright (c) 2009-2011 Kohana Team
8 * @license http://http://kohanaframework.org/license
11 class Kohana_ImageTest
extends PHPUnit_Framework_TestCase
{
14 * Tests the Image::save() method for files that don't have extensions
18 public function test_save_without_extension()
20 $image = Image
::factory(MODPATH
.'image/tests/test_data/test_image');
21 $this->assertTrue($image->save(Kohana
::$cache_dir.'/test_image'));
23 unlink(Kohana
::$cache_dir.'/test_image');
26 } // End Kohana_ImageTest