File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function testAllValidBarcodeTypes()
30
30
$ barcodeType = $ this ->getBarcodeType ($ barcodeTestSet ['type ' ]);
31
31
32
32
foreach ($ barcodeTestSet ['barcodes ' ] as $ testBarcode => $ validBarcode ) {
33
- $ this ->assertEquals ($ validBarcode , $ barcodeType ->getBarcodeData ($ testBarcode )->getBarcode ());
33
+ $ this ->assertEquals ($ validBarcode , $ barcodeType ->getBarcode ($ testBarcode )->getBarcode ());
34
34
}
35
35
}
36
36
}
@@ -42,7 +42,7 @@ public function testAllInvalidBarcodeTypes()
42
42
43
43
foreach ($ barcodeTestSet ['barcodes ' ] as $ invalidBarcode ) {
44
44
try {
45
- $ barcodeType ->getBarcodeData ($ invalidBarcode )->getBarcode ();
45
+ $ barcodeType ->getBarcode ($ invalidBarcode )->getBarcode ();
46
46
} catch (BarcodeException $ exception ) {
47
47
$ this ->assertInstanceOf (InvalidCheckDigitException::class, $ exception );
48
48
continue ;
@@ -53,7 +53,6 @@ public function testAllInvalidBarcodeTypes()
53
53
}
54
54
}
55
55
56
-
57
56
private function getBarcodeType (string $ typeClass ): TypeInterface
58
57
{
59
58
return new $ typeClass ;
You can’t perform that action at this time.
0 commit comments