mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-18 17:55:34 +00:00
:octocat: extract QRMatrix::getBooleanMatrix() from QRMatrix::getMatrix() to remove type ambiguity
This commit is contained in:
@@ -42,7 +42,7 @@ final class QRMatrixTest extends TestCase{
|
||||
* Tests if size() returns the actual matrix size/count
|
||||
*/
|
||||
public function testGetSize():void{
|
||||
$this::assertCount($this->matrix->getSize(), $this->matrix->getMatrix(true));
|
||||
$this::assertCount($this->matrix->getSize(), $this->matrix->getBooleanMatrix());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -255,8 +255,8 @@ final class QRMatrixTest extends TestCase{
|
||||
|
||||
$s = ($size + 2 * $quietZoneSize);
|
||||
|
||||
$this::assertCount($s, $matrix->getMatrix(true));
|
||||
$this::assertCount($s, $matrix->getMatrix(true)[($size - 1)]);
|
||||
$this::assertCount($s, $matrix->getBooleanMatrix());
|
||||
$this::assertCount($s, $matrix->getBooleanMatrix()[($size - 1)]);
|
||||
|
||||
$size = $matrix->getSize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user