🚿 extract version and mask pattern constants from QRCode to their respective classes and mark QRCode::VERSION_AUTO and QRCode::MASK_PATTERN_AUTO as deprecated

This commit is contained in:
smiley
2022-07-14 19:22:37 +02:00
parent 3cd977b2b2
commit b48a58462c
7 changed files with 33 additions and 22 deletions
+2 -3
View File
@@ -10,8 +10,7 @@
namespace chillerlan\QRCodeTest\Data;
use chillerlan\QRCode\Common\MaskPattern;
use chillerlan\QRCode\QRCode;
use chillerlan\QRCode\Common\{MaskPattern, Version};
use chillerlan\QRCode\QROptions;
use PHPUnit\Framework\TestCase;
use chillerlan\QRCode\Data\{QRCodeDataException, QRData, QRMatrix};
@@ -93,7 +92,7 @@ abstract class DatainterfaceTestAbstract extends TestCase{
$this->expectExceptionMessage('data exceeds');
$this->QRData = new QRData(
new QROptions(['version' => QRCode::VERSION_AUTO]),
new QROptions(['version' => Version::AUTO]),
[new $this->FQN(str_repeat($this->testdata, 1337))]
);
}