mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-10 22:06:01 +00:00
🛀 test overhaul
This commit is contained in:
@@ -15,19 +15,12 @@ use chillerlan\QRCode\QROptions;
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\Output\{QRGdImageAVIF, QROutputInterface};
|
||||
use chillerlan\Settings\SettingsContainerInterface;
|
||||
use function function_exists;
|
||||
use PHPUnit\Framework\Attributes\{RequiresFunction, RequiresPhpExtension};
|
||||
|
||||
#[RequiresPhpExtension('gd')]
|
||||
#[RequiresFunction('imageavif')]
|
||||
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