From 3fd785654372d493c031d9b541ab33a881023a32 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Feb 2021 19:16:17 +0300 Subject: * switch to composer for qrcode and otp dependencies * move most OTP-related stuff into userhelper * remove old phpqrcode and otphp libraries --- .../tests/Data/MaskPatternTesterTest.php | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 vendor/chillerlan/php-qrcode/tests/Data/MaskPatternTesterTest.php (limited to 'vendor/chillerlan/php-qrcode/tests/Data/MaskPatternTesterTest.php') diff --git a/vendor/chillerlan/php-qrcode/tests/Data/MaskPatternTesterTest.php b/vendor/chillerlan/php-qrcode/tests/Data/MaskPatternTesterTest.php new file mode 100644 index 000000000..ae4af9f29 --- /dev/null +++ b/vendor/chillerlan/php-qrcode/tests/Data/MaskPatternTesterTest.php @@ -0,0 +1,29 @@ + + * @copyright 2017 Smiley + * @license MIT + */ + +namespace chillerlan\QRCodeTest\Data; + +use chillerlan\QRCode\{QROptions, Data\Byte, Data\MaskPatternTester}; +use chillerlan\QRCodeTest\QRTestAbstract; + +class MaskPatternTesterTest extends QRTestAbstract{ + + protected $FQCN = MaskPatternTester::class; + + // coverage + public function testMaskpattern(){ + $matrix = (new Byte(new QROptions(['version' => 10]), 'test'))->initMatrix(3, true); + + $this->assertSame(4243, (new MaskPatternTester($matrix))->testPattern()); + } + +} -- cgit v1.2.3