mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-22 13:35:13 +00:00
:octocat: EccLevel::$level remove property getter in favor of asymmetric visibility
This commit is contained in:
@@ -162,7 +162,7 @@ abstract class QRCodeReaderTestAbstract extends TestCase{
|
||||
public function readData(Version $version, EccLevel $ecc, string $expected):void{
|
||||
$this->options->outputInterface = QRGdImagePNG::class;
|
||||
$this->options->imageTransparent = false;
|
||||
$this->options->eccLevel = $ecc->getLevel();
|
||||
$this->options->eccLevel = $ecc->level;
|
||||
$this->options->version = $version->getVersionNumber();
|
||||
$this->options->outputBase64 = false;
|
||||
// what's interesting is that a smaller scale seems to produce fewer reader errors???
|
||||
@@ -178,7 +178,7 @@ abstract class QRCodeReaderTestAbstract extends TestCase{
|
||||
|
||||
$this::assertSame($expected, $result->data);
|
||||
$this::assertSame($version->getVersionNumber(), $result->version->getVersionNumber());
|
||||
$this::assertSame($ecc->getLevel(), $result->eccLevel->getLevel());
|
||||
$this::assertSame($ecc->level, $result->eccLevel->level);
|
||||
}
|
||||
catch(Exception $e){
|
||||
$this::markTestSkipped(sprintf('skipped version %s%s: %s', $version, $ecc, $e->getMessage()));
|
||||
|
||||
Reference in New Issue
Block a user