File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function testAllValidBarcodeTypes()
3030 $ barcodeType = $ this ->getBarcodeType ($ barcodeTestSet ['type ' ]);
3131
3232 foreach ($ barcodeTestSet ['barcodes ' ] as $ testBarcode => $ validBarcode ) {
33- $ this ->assertEquals ($ validBarcode , $ barcodeType ->getBarcodeData ($ testBarcode )->getBarcode ());
33+ $ this ->assertEquals ($ validBarcode , $ barcodeType ->getBarcode ($ testBarcode )->getBarcode ());
3434 }
3535 }
3636 }
@@ -42,7 +42,7 @@ public function testAllInvalidBarcodeTypes()
4242
4343 foreach ($ barcodeTestSet ['barcodes ' ] as $ invalidBarcode ) {
4444 try {
45- $ barcodeType ->getBarcodeData ($ invalidBarcode )->getBarcode ();
45+ $ barcodeType ->getBarcode ($ invalidBarcode )->getBarcode ();
4646 } catch (BarcodeException $ exception ) {
4747 $ this ->assertInstanceOf (InvalidCheckDigitException::class, $ exception );
4848 continue ;
@@ -53,7 +53,6 @@ public function testAllInvalidBarcodeTypes()
5353 }
5454 }
5555
56-
5756 private function getBarcodeType (string $ typeClass ): TypeInterface
5857 {
5958 return new $ typeClass ;
You can’t perform that action at this time.
0 commit comments