mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-18 01:53:12 +00:00
:octocat: skip AVIF output test if not supported/installed
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user