:octocat: move mask pattern parameter

This commit is contained in:
smiley
2023-04-04 20:21:04 +02:00
parent 9bc23a2161
commit 50179a97ef
6 changed files with 38 additions and 28 deletions
+1 -3
View File
@@ -43,9 +43,7 @@ abstract class QROutputTestAbstract extends TestCase{
$this->options = new QROptions;
$this->options->outputType = $this->type;
$this->matrix = (new QRData($this->options, [new Byte('testdata')]))
->writeMatrix(new MaskPattern(MaskPattern::PATTERN_010));
$this->matrix = (new QRCode($this->options))->addByteSegment('testdata')->getQRMatrix();
$this->outputInterface = new $this->FQN($this->options, $this->matrix);
}