From 005c563112972968f9710fb2e911f35e287b3b00 Mon Sep 17 00:00:00 2001 From: diarmuid Date: Sat, 15 Aug 2015 18:30:10 +0100 Subject: [PATCH] Unit test isEncoded() function --- tests/ImageTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/ImageTest.php b/tests/ImageTest.php index ee76473a..752b0cc6 100644 --- a/tests/ImageTest.php +++ b/tests/ImageTest.php @@ -43,6 +43,15 @@ class ImageTest extends PHPUnit_Framework_TestCase @unlink($save_as); } + public function testIsEncoded() + { + $image = $this->getTestImage(); + $this->assertFalse($image->isEncoded()); + + $image->setEncoded('foo'); + $this->assertTrue($image->isEncoded()); + } + public function testFilter() { $demoFilter = Mockery::mock('\Intervention\Image\Filters\DemoFilter', array(15));