From 871daeb8704f4216c595bb5b308bdbe0ce292a96 Mon Sep 17 00:00:00 2001 From: Casper Bakker Date: Fri, 20 Sep 2024 17:42:50 +0200 Subject: [PATCH] Update ChecksumBarcodeTest.php --- tests/ChecksumBarcodeTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;