QRStringJSONTest.php 1003 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Class QRStringJSONTest
  4. *
  5. * @created 11.12.2021
  6. * @author smiley <smiley@chillerlan.net>
  7. * @copyright 2021 smiley
  8. * @license MIT
  9. */
  10. namespace chillerlan\QRCodeTest\Output;
  11. use chillerlan\QRCode\Output\QROutputInterface;
  12. use chillerlan\QRCode\Output\QRStringJSON;
  13. use function extension_loaded;
  14. /**
  15. *
  16. */
  17. final class QRStringJSONTest extends QROutputTestAbstract{
  18. protected string $type = QROutputInterface::STRING_JSON;
  19. protected string $FQN = QRStringJSON::class;
  20. /**
  21. * @inheritDoc
  22. */
  23. protected function setUp():void{
  24. // just in case someone's running this on some weird distro that's been compiled without ext-json
  25. if(!extension_loaded('json')){
  26. $this::markTestSkipped('ext-json not loaded');
  27. }
  28. parent::setUp();
  29. }
  30. public static function moduleValueProvider():array{
  31. return [];
  32. }
  33. public function testSetModuleValues():void{
  34. /** @noinspection PhpUnitTestFailedLineInspection */
  35. $this::markTestSkipped('N/A (JSON test)');
  36. }
  37. }