* @copyright 2021 smiley * @license MIT */ namespace chillerlan\QRCodeTest\Output; use chillerlan\QRCode\QROptions; use chillerlan\QRCode\Data\QRMatrix; use chillerlan\QRCode\Output\{QROutputInterface, QRStringJSON}; use function extension_loaded; /** * */ final class QRStringJSONTest extends QROutputTestAbstract{ protected string $type = QROutputInterface::STRING_JSON; /** * @inheritDoc */ protected function setUp():void{ // just in case someone's running this on some weird distro that's been compiled without ext-json if(!extension_loaded('json')){ $this::markTestSkipped('ext-json not loaded'); } parent::setUp(); } protected function getOutputInterface(QROptions $options, QRMatrix $matrix):QROutputInterface{ return new QRStringJSON($options, $matrix); } public static function moduleValueProvider():array{ return [[null, false]]; } /** * @param mixed $value * @param bool $expected * * @dataProvider moduleValueProvider */ public function testValidateModuleValues($value, bool $expected):void{ $this::markTestSkipped('N/A (JSON test)'); } public function testSetModuleValues():void{ /** @noinspection PhpUnitTestFailedLineInspection */ $this::markTestSkipped('N/A (JSON test)'); } }