Added tests for #3568
[kohana-image.git] / tests / kohana / ImageTest.php
blobed92ab8e6c84c3bc0e0bc46df650f57433b5e06c
1 <?php defined('SYSPATH') OR die('Kohana bootstrap needs to be included before tests run');
3 /**
4 * @package Kohana/Image
5 * @category Test
6 * @author Kohana Team
7 * @copyright (c) 2009-2011 Kohana Team
8 * @license http://http://kohanaframework.org/license
9 */
11 class Kohana_ImageTest extends PHPUnit_Framework_TestCase {
13 /**
14 * Tests the Image::save() method for files that don't have extensions
16 * @return void
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