🛀 extract EccLevel

This commit is contained in:
codemasher
2020-11-22 03:04:42 +01:00
parent 6d8705b19b
commit d58c2044f1
8 changed files with 290 additions and 231 deletions
+2 -2
View File
@@ -13,7 +13,7 @@
namespace chillerlan\QRCodeTest\Output;
use chillerlan\QRCodeExamples\MyCustomOutput;
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\{Common\EccLevel, QRCode, QROptions};
use chillerlan\QRCode\Output\{QROutputInterface, QRString};
/**
@@ -63,7 +63,7 @@ class QRStringTest extends QROutputTestAbstract{
*/
public function testCustomOutput():void{
$this->options->version = 5;
$this->options->eccLevel = QRCode::ECC_L;
$this->options->eccLevel = EccLevel::L;
$this->options->outputType = QRCode::OUTPUT_CUSTOM;
$this->options->outputInterface = MyCustomOutput::class;