Skip to content

Commit

Permalink
Skip Webp image tests if not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jdecool committed Oct 16, 2019
1 parent 48911bb commit 3c67dd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ImageWorkshopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 3c67dd2

Please sign in to comment.