Skip to content

Commit 5477e12

Browse files
committed
:octocat: skip AVIF output test if not supported/installed
1 parent daf01b9 commit 5477e12

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Output/QRGdImageAVIFTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,19 @@
1515
use chillerlan\QRCode\Data\QRMatrix;
1616
use chillerlan\QRCode\Output\{QRGdImageAVIF, QROutputInterface};
1717
use chillerlan\Settings\SettingsContainerInterface;
18+
use function function_exists;
1819

1920
final class QRGdImageAVIFTest extends QRGdImageTestAbstract{
2021

22+
protected function setUp():void{
23+
parent::setUp();
24+
25+
if(!function_exists('imageavif')){
26+
$this::markTestSkipped('no AVIF support');
27+
}
28+
29+
}
30+
2131
protected function getOutputInterface(
2232
SettingsContainerInterface|QROptions $options,
2333
QRMatrix $matrix,

0 commit comments

Comments
 (0)