mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-09 21:35:53 +00:00
🚿 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:
@@ -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))]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user