QRGdImageAVIFTest.php 875 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Class QRGdImageAVIFTest
  4. *
  5. * @created 27.11.2023
  6. * @author smiley <smiley@chillerlan.net>
  7. * @copyright 2023 smiley
  8. * @license MIT
  9. */
  10. declare(strict_types=1);
  11. namespace chillerlan\QRCodeTest\Output;
  12. use chillerlan\QRCode\QROptions;
  13. use chillerlan\QRCode\Data\QRMatrix;
  14. use chillerlan\QRCode\Output\{QRGdImageAVIF, QROutputInterface};
  15. use chillerlan\Settings\SettingsContainerInterface;
  16. use function function_exists;
  17. final class QRGdImageAVIFTest extends QRGdImageTestAbstract{
  18. protected function setUp():void{
  19. parent::setUp();
  20. if(!function_exists('imageavif')){
  21. $this::markTestSkipped('no AVIF support');
  22. }
  23. }
  24. protected function getOutputInterface(
  25. SettingsContainerInterface|QROptions $options,
  26. QRMatrix $matrix,
  27. ):QROutputInterface{
  28. return new QRGdImageAVIF($options, $matrix);
  29. }
  30. }