:octocat: QRMatrix::M_*TYPE rework, separate masking

This commit is contained in:
codemasher
2021-01-19 00:24:16 +01:00
parent 902486edc3
commit 307b6462f6
14 changed files with 246 additions and 194 deletions
+6 -4
View File
@@ -12,9 +12,11 @@
namespace chillerlan\QRCodeTest\Output;
use chillerlan\QRCodeExamples\MyCustomOutput;
use chillerlan\QRCode\{Common\EccLevel, QRCode, QROptions};
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Common\EccLevel;
use chillerlan\QRCode\Data\QRMatrix;
use chillerlan\QRCode\Output\{QROutputInterface, QRString};
use chillerlan\QRCodeExamples\MyCustomOutput;
/**
* Tests the QRString output module
@@ -47,8 +49,8 @@ class QRStringTest extends QROutputTestAbstract{
$this->options->moduleValues = [
// data
1024 => 'A',
4 => 'B',
QRMatrix::M_DATA | QRMatrix::IS_DARK => 'A',
QRMatrix::M_DATA => 'B',
];
$this->outputInterface = $this->getOutputInterface($this->options);