QRGdImagePNGTest.php 780 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Class QRGdImagePNGTest
  4. *
  5. * @created 11.12.2021
  6. * @author smiley <smiley@chillerlan.net>
  7. * @copyright 2021 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\{QRGdImagePNG, QROutputInterface};
  15. use chillerlan\Settings\SettingsContainerInterface;
  16. use PHPUnit\Framework\Attributes\RequiresPhpExtension;
  17. #[RequiresPhpExtension('gd')]
  18. final class QRGdImagePNGTest extends QRGdImageTestAbstract{
  19. protected function getOutputInterface(
  20. SettingsContainerInterface|QROptions $options,
  21. QRMatrix $matrix,
  22. ):QROutputInterface{
  23. return new QRGdImagePNG($options, $matrix);
  24. }
  25. }