From 5477e121d3d818872c762c116809822cc73c67f3 Mon Sep 17 00:00:00 2001 From: smiley Date: Fri, 18 Jul 2025 20:03:14 +0200 Subject: [PATCH] :octocat: skip AVIF output test if not supported/installed --- tests/Output/QRGdImageAVIFTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Output/QRGdImageAVIFTest.php b/tests/Output/QRGdImageAVIFTest.php index f84149c56..9e2d0eb0c 100644 --- a/tests/Output/QRGdImageAVIFTest.php +++ b/tests/Output/QRGdImageAVIFTest.php @@ -15,9 +15,19 @@ use chillerlan\QRCode\QROptions; use chillerlan\QRCode\Data\QRMatrix; use chillerlan\QRCode\Output\{QRGdImageAVIF, QROutputInterface}; use chillerlan\Settings\SettingsContainerInterface; +use function function_exists; final class QRGdImageAVIFTest extends QRGdImageTestAbstract{ + protected function setUp():void{ + parent::setUp(); + + if(!function_exists('imageavif')){ + $this::markTestSkipped('no AVIF support'); + } + + } + protected function getOutputInterface( SettingsContainerInterface|QROptions $options, QRMatrix $matrix,