diff --git a/tests/ImageWorkshopTest.php b/tests/ImageWorkshopTest.php index 8acff45..1bd3813 100644 --- a/tests/ImageWorkshopTest.php +++ b/tests/ImageWorkshopTest.php @@ -63,6 +63,10 @@ public function testInitFromPath() public function testInitFromPathWebpImage() { + if (!function_exists('imagecreatefromwebp')) { + $this->markTestSkipped('WebP support is not enable'); + } + $layer = ImageWorkshop::initFromPath(__DIR__.'/Resources/images/sample.webp'); $this->assertTrue(is_object($layer) === true, 'Expect $layer to be an object');