@@ -141,7 +141,7 @@ public function testECC():void{
141141 */
142142 public function testMaskPattern ():void {
143143 // set via matrix evaluation
144- $ matrix = (new QRCode )->addByteSegment ('testdata ' )->getMatrix ();
144+ $ matrix = (new QRCode )->addByteSegment ('testdata ' )->getQRMatrix ();
145145
146146 $ this ::assertInstanceOf (MaskPattern::class, $ matrix ->getMaskPattern ());
147147 $ this ::assertSame (MaskPattern::PATTERN_100 , $ matrix ->getMaskPattern ()->getPattern ());
@@ -378,7 +378,7 @@ public function testSetLogoSpaceOmitHeight():void{
378378 $ o ->addLogoSpace = true ;
379379 $ o ->logoSpaceHeight = 5 ;
380380
381- $ matrix = (new QRCode ($ o ))->addByteSegment ('testdata ' )->getMatrix ();
381+ $ matrix = (new QRCode ($ o ))->addByteSegment ('testdata ' )->getQRMatrix ();
382382
383383 self ::debugMatrix ($ matrix );
384384
@@ -398,7 +398,7 @@ public function testSetLogoSpaceOrientation():void{
398398 $ o ->eccLevel = EccLevel::H;
399399 $ o ->addQuietzone = false ;
400400
401- $ matrix = (new QRCode ($ o ))->addByteSegment ('testdata ' )->getMatrix ();
401+ $ matrix = (new QRCode ($ o ))->addByteSegment ('testdata ' )->getQRMatrix ();
402402 // also testing size adjustment to uneven numbers
403403 $ matrix ->setLogoSpace (20 , 14 );
404404
@@ -423,7 +423,7 @@ public function testSetLogoSpacePosition():void{
423423 $ o ->addQuietzone = true ;
424424 $ o ->quietzoneSize = 10 ;
425425
426- $ matrix = (new QRCode ($ o ))->addByteSegment ('testdata ' )->getMatrix ();
426+ $ matrix = (new QRCode ($ o ))->addByteSegment ('testdata ' )->getQRMatrix ();
427427
428428 self ::debugMatrix ($ matrix );
429429
@@ -453,7 +453,7 @@ public function testSetLogoSpaceInvalidEccException():void{
453453 $ this ->expectException (QRCodeDataException::class);
454454 $ this ->expectExceptionMessage ('ECC level "H" required to add logo space ' );
455455
456- (new QRCode )->addByteSegment ('testdata ' )->getMatrix ()->setLogoSpace (50 , 50 );
456+ (new QRCode )->addByteSegment ('testdata ' )->getQRMatrix ()->setLogoSpace (50 , 50 );
457457 }
458458
459459 /**
@@ -467,7 +467,7 @@ public function testSetLogoSpaceExceedsException():void{
467467 $ o ->version = 5 ;
468468 $ o ->eccLevel = EccLevel::H;
469469
470- (new QRCode ($ o ))->addByteSegment ('testdata ' )->getMatrix ()->setLogoSpace (69 , 1 );
470+ (new QRCode ($ o ))->addByteSegment ('testdata ' )->getQRMatrix ()->setLogoSpace (69 , 1 );
471471 }
472472
473473 /**
@@ -481,7 +481,7 @@ public function testSetLogoSpaceMaxSizeException():void{
481481 $ o ->version = 5 ;
482482 $ o ->eccLevel = EccLevel::H;
483483
484- (new QRCode ($ o ))->addByteSegment ('testdata ' )->getMatrix ()->setLogoSpace (37 , 37 );
484+ (new QRCode ($ o ))->addByteSegment ('testdata ' )->getQRMatrix ()->setLogoSpace (37 , 37 );
485485 }
486486
487487 /**
0 commit comments