QRGdImageAVIFTest.php 837 B

12345678910111213141516171819202122232425262728293031
  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 PHPUnit\Framework\Attributes\{RequiresFunction, RequiresPhpExtension};
  17. #[RequiresPhpExtension('gd')]
  18. #[RequiresFunction('imageavif')]
  19. final class QRGdImageAVIFTest extends QRGdImageTestAbstract{
  20. protected function getOutputInterface(
  21. SettingsContainerInterface|QROptions $options,
  22. QRMatrix $matrix,
  23. ):QROutputInterface{
  24. return new QRGdImageAVIF($options, $matrix);
  25. }
  26. }