1 <?php
defined('SYSPATH') OR die('Kohana bootstrap needs to be included before tests run');
4 * @package Kohana/Image
9 * @copyright (c) 2009-2012 Kohana Team
10 * @license http://http://kohanaframework.org/license
13 class Kohana_ImageTest
extends PHPUnit_Framework_TestCase
{
15 protected function setUp()
17 if ( ! extension_loaded('gd'))
19 $this->markTestSkipped('The GD extension is not available.');
24 * Tests the Image::save() method for files that don't have extensions
28 public function test_save_without_extension()
30 $image = Image
::factory(MODPATH
.'image/tests/test_data/test_image');
31 $this->assertTrue($image->save(Kohana
::$cache_dir.'/test_image'));
33 unlink(Kohana
::$cache_dir.'/test_image');
36 } // End Kohana_ImageTest