summaryrefslogtreecommitdiffstats
path: root/tests/ImageWorkshopTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ImageWorkshopTest.php')
-rw-r--r--tests/ImageWorkshopTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ImageWorkshopTest.php b/tests/ImageWorkshopTest.php
index f59bb21..c4a1c17 100644
--- a/tests/ImageWorkshopTest.php
+++ b/tests/ImageWorkshopTest.php
@@ -31,10 +31,17 @@ class ImageWorkshopTest extends \PHPUnit_Framework_TestCase
*/
public function testInitFromPath()
{
+ // test 1
+
$layer = ImageWorkshop::initFromPath(__DIR__.static::IMAGE_SAMPLE_PATH);
$this->assertTrue(is_object($layer) === true, 'Expect $layer to be an object');
$this->assertTrue(get_class($layer) === 'PHPImageWorkshop\Core\ImageWorkshopLayer', 'Expect $layer to be an ImageWorkshopLayer object');
+
+ // test 2
+
+ $this->setExpectedException('PHPImageWorkshop\Exception\ImageWorkshopException');
+ $layer = ImageWorkshop::initFromPath('fakePath');
}
/**