| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- /**
- * Class QRStringJSONTest
- *
- * @created 11.12.2021
- * @author smiley <smiley@chillerlan.net>
- * @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 chillerlan\Settings\SettingsContainerInterface;
- use PHPUnit\Framework\Attributes\DataProvider;
- use function extension_loaded;
- /**
- *
- */
- final class QRStringJSONTest extends QROutputTestAbstract{
- /**
- * @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(
- SettingsContainerInterface|QROptions $options,
- QRMatrix $matrix
- ):QROutputInterface{
- return new QRStringJSON($options, $matrix);
- }
- public static function moduleValueProvider():array{
- return [[null, false]];
- }
- #[DataProvider('moduleValueProvider')]
- public function testValidateModuleValues(mixed $value, bool $expected):void{
- $this::markTestSkipped('N/A (JSON test)');
- }
- public function testSetModuleValues():void{
- $this::markTestSkipped('N/A (JSON test)');
- }
- }
|