🚿 extract OUTPUT_* constants from QRCode to QROutputInterface and mark QRCode::OUTPUT_* as deprecated

This commit is contained in:
smiley
2022-07-15 19:20:58 +02:00
parent b48a58462c
commit ae1c1f56ca
29 changed files with 200 additions and 110 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ namespace chillerlan\QRCodeTest\Data;
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Common\{EccLevel, MaskPattern, Version};
use chillerlan\QRCode\Data\{QRCodeDataException, QRMatrix};
use chillerlan\QRCode\Output\QRString;
use chillerlan\QRCode\Output\{QROutputInterface, QRString};
use PHPUnit\Framework\TestCase;
use PHPUnit\Util\Color;
use Generator;
@@ -42,7 +42,7 @@ final class QRMatrixTest extends TestCase{
*/
public static function debugMatrix(QRMatrix $matrix):void{
$opt = new QROptions;
$opt->outputType = QRCode::OUTPUT_STRING_TEXT;
$opt->outputType = QROutputInterface::STRING_TEXT;
$opt->eol = Color::colorize('reset', "\x00\n");
$opt->moduleValues = [
// finder