QRStringJSONTest.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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\QRStringJSON;
  12. use PHPUnit\Framework\Attributes\DataProvider;
  13. use function extension_loaded;
  14. /**
  15. *
  16. */
  17. final class QRStringJSONTest extends QROutputTestAbstract{
  18. protected string $FQN = QRStringJSON::class;
  19. /**
  20. * @inheritDoc
  21. */
  22. protected function setUp():void{
  23. // just in case someone's running this on some weird distro that's been compiled without ext-json
  24. if(!extension_loaded('json')){
  25. $this::markTestSkipped('ext-json not loaded');
  26. }
  27. parent::setUp();
  28. }
  29. public static function moduleValueProvider():array{
  30. return [[null, false]];
  31. }
  32. #[DataProvider('moduleValueProvider')]
  33. public function testValidateModuleValues(mixed $value, bool $expected):void{
  34. $this::markTestSkipped('N/A (JSON test)');
  35. }
  36. public function testSetModuleValues():void{
  37. $this::markTestSkipped('N/A (JSON test)');
  38. }
  39. }