diff --git a/tests/ChecksumBarcodeTest.php b/tests/ChecksumBarcodeTest.php index eff35ab..c9daf2d 100644 --- a/tests/ChecksumBarcodeTest.php +++ b/tests/ChecksumBarcodeTest.php @@ -30,7 +30,7 @@ public function testAllValidBarcodeTypes() $barcodeType = $this->getBarcodeType($barcodeTestSet['type']); foreach ($barcodeTestSet['barcodes'] as $testBarcode => $validBarcode) { - $this->assertEquals($validBarcode, $barcodeType->getBarcodeData($testBarcode)->getBarcode()); + $this->assertEquals($validBarcode, $barcodeType->getBarcode($testBarcode)->getBarcode()); } } } @@ -42,7 +42,7 @@ public function testAllInvalidBarcodeTypes() foreach ($barcodeTestSet['barcodes'] as $invalidBarcode) { try { - $barcodeType->getBarcodeData($invalidBarcode)->getBarcode(); + $barcodeType->getBarcode($invalidBarcode)->getBarcode(); } catch (BarcodeException $exception) { $this->assertInstanceOf(InvalidCheckDigitException::class, $exception); continue; @@ -53,7 +53,6 @@ public function testAllInvalidBarcodeTypes() } } - private function getBarcodeType(string $typeClass): TypeInterface { return new $typeClass;