mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-24 20:57:55 +00:00
🔧 estimated bit length was correct, add a safety margin instead
This commit is contained in:
@@ -86,7 +86,8 @@ final class QRDataTest extends TestCase{
|
||||
|
||||
$qrData = new QRData($options, [new Byte($str)]);
|
||||
|
||||
$this::assertSame(980, $qrData->estimateTotalBitLength());
|
||||
$this::assertSame(976, $qrData->estimateTotalBitLength());
|
||||
$this::assertSame(11, $qrData->getMinimumVersion()->getVersionNumber()); // version adjusted to 11
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user