:octocat: simplified mask pattern tester call

This commit is contained in:
codemasher
2018-03-13 18:24:12 +01:00
parent c70413232b
commit aac41883d0
3 changed files with 3 additions and 11 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class MaskPatternTesterTest extends QRTestAbstract{
public function testMaskpattern(){
$matrix = (new Byte(new QROptions(['version' => 10]), 'test'))->initMatrix(0, true);
$this->assertSame(6178, (new MaskPatternTester)->setMatrix($matrix)->testPattern());
$this->assertSame(6178, (new MaskPatternTester($matrix))->testPattern());
}