mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 05:01:20 +02:00
Merge branch 'diarmuidie-fix-isencoded-return-value'
This commit is contained in:
@@ -268,7 +268,7 @@ class Image extends File
|
|||||||
*/
|
*/
|
||||||
public function isEncoded()
|
public function isEncoded()
|
||||||
{
|
{
|
||||||
return ! is_null($this->encoded);
|
return ! empty($this->encoded);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -43,6 +43,15 @@ class ImageTest extends PHPUnit_Framework_TestCase
|
|||||||
@unlink($save_as);
|
@unlink($save_as);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testIsEncoded()
|
||||||
|
{
|
||||||
|
$image = $this->getTestImage();
|
||||||
|
$this->assertFalse($image->isEncoded());
|
||||||
|
|
||||||
|
$image->setEncoded('foo');
|
||||||
|
$this->assertTrue($image->isEncoded());
|
||||||
|
}
|
||||||
|
|
||||||
public function testFilter()
|
public function testFilter()
|
||||||
{
|
{
|
||||||
$demoFilter = Mockery::mock('\Intervention\Image\Filters\DemoFilter', array(15));
|
$demoFilter = Mockery::mock('\Intervention\Image\Filters\DemoFilter', array(15));
|
||||||
|
Reference in New Issue
Block a user