mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 09:11:29 +00:00
* switch to composer for qrcode and otp dependencies
* move most OTP-related stuff into userhelper * remove old phpqrcode and otphp libraries
This commit is contained in:
29
vendor/chillerlan/php-qrcode/tests/Data/MaskPatternTesterTest.php
vendored
Normal file
29
vendor/chillerlan/php-qrcode/tests/Data/MaskPatternTesterTest.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Class MaskPatternTesterTest
|
||||
*
|
||||
* @filesource MaskPatternTesterTest.php
|
||||
* @created 24.11.2017
|
||||
* @package chillerlan\QRCodeTest\Data
|
||||
* @author Smiley <smiley@chillerlan.net>
|
||||
* @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());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user