diff --git a/src/QrBill.php b/src/QrBill.php index 550f7627..65d3e0b9 100644 --- a/src/QrBill.php +++ b/src/QrBill.php @@ -222,7 +222,7 @@ private function getQrCodeContent(): string $qrCodeStringElements = $this->extractQrCodeDataFromElements($elements); - return implode("\r\n", $qrCodeStringElements); + return implode("\n", $qrCodeStringElements); } private function extractQrCodeDataFromElements(array $elements): array diff --git a/tests/PaymentPart/Output/HtmlOutput/HtmlOutputTest.php b/tests/PaymentPart/Output/HtmlOutput/HtmlOutputTest.php index eb2411bf..9234f037 100644 --- a/tests/PaymentPart/Output/HtmlOutput/HtmlOutputTest.php +++ b/tests/PaymentPart/Output/HtmlOutput/HtmlOutputTest.php @@ -12,8 +12,6 @@ class HtmlOutputTest extends TestCase { use TestQrBillCreatorTrait; - private $regenerateReferenceHtmlOutputs = false; - /** * @dataProvider validQrBillsProvider */ @@ -44,7 +42,7 @@ public function testValidQrBills(string $name, QrBill $qrBill) $htmlOutput->setQrCodeImageFormat($variation['format']); $output = $htmlOutput->getPaymentPart(); - if ($this->regenerateReferenceHtmlOutputs) { + if ($this->regenerateReferenceFiles) { file_put_contents($file, $output); } diff --git a/tests/PaymentPart/Output/TcPdfOutput/TcPdfOutputTest.php b/tests/PaymentPart/Output/TcPdfOutput/TcPdfOutputTest.php index e569c98d..72f5b4ea 100644 --- a/tests/PaymentPart/Output/TcPdfOutput/TcPdfOutputTest.php +++ b/tests/PaymentPart/Output/TcPdfOutput/TcPdfOutputTest.php @@ -13,8 +13,6 @@ class TcPdfOutputTest extends TestCase { use TestQrBillCreatorTrait; - private $regenerateReferenceTcPdfOutputs = false; - /** * @dataProvider validQrBillsProvider */ @@ -53,7 +51,7 @@ public function testValidQrBills(string $name, QrBill $qrBill) $tcPdfOutput->setQrCodeImageFormat($variation['format']); $tcPdfOutput->getPaymentPart(); - if ($this->regenerateReferenceTcPdfOutputs) { + if ($this->regenerateReferenceFiles) { $tcPdf->Output($file, 'F'); } diff --git a/tests/QrBillTest.php b/tests/QrBillTest.php index 1c12b890..efeb3c8e 100644 --- a/tests/QrBillTest.php +++ b/tests/QrBillTest.php @@ -11,21 +11,21 @@ class QrBillTest extends TestCase { use TestQrBillCreatorTrait; - private $regenerateReferenceQrCodes = false; - /** * @dataProvider validQrBillsProvider */ public function testValidQrBills(string $name, QrBill $qrBill) { $file = __DIR__ . '/TestData/QrCodes/' . $name . '.png'; + $textFile = __DIR__ . '/TestData/QrCodes/' . $name . '.txt'; - if ($this->regenerateReferenceQrCodes) { + if ($this->regenerateReferenceFiles) { $qrBill->getQrCode()->writeFile($file); + file_put_contents($textFile, $qrBill->getQrCode()->getText()); } $this->assertSame( - (new QrReader($file))->text(), + file_get_contents($textFile), $qrBill->getQrCode()->getText() ); } diff --git a/tests/TestData/HtmlOutput/qr-additional-information.html b/tests/TestData/HtmlOutput/qr-additional-information.html index b45d208a..7e17a904 100644 --- a/tests/TestData/HtmlOutput/qr-additional-information.html +++ b/tests/TestData/HtmlOutput/qr-additional-information.html @@ -194,7 +194,7 @@
CHF
@@ -209,7 +209,9 @@25.90
CH44 3199 9123 0008 8901 2
Thomas LeClaire
Rue examplaire 22a
-CH-1000 Lausanne
12 34567 89012 34567 89012 34567
Invoice 1234568
12 34567 89012 34567 89012 34567
Invoice 1234568
+Gardening work
+Bill Information
CHF
@@ -219,7 +219,9 @@25.90
CH44 3199 9123 0008 8901 2
Thomas LeClaire
Rue examplaire 22a
-CH-1000 Lausanne
12 34567 89012 34567 89012 34567
Invoice 1234568
12 34567 89012 34567 89012 34567
Invoice 1234568
+Gardening work
+Bill Information
CHF
diff --git a/tests/TestData/HtmlOutput/qr-alternative-schemes.print.html b/tests/TestData/HtmlOutput/qr-alternative-schemes.print.html index 105e07fe..38efa885 100644 --- a/tests/TestData/HtmlOutput/qr-alternative-schemes.print.html +++ b/tests/TestData/HtmlOutput/qr-alternative-schemes.print.html @@ -204,7 +204,7 @@CHF
diff --git a/tests/TestData/HtmlOutput/qr-full-set.html b/tests/TestData/HtmlOutput/qr-full-set.html index df130523..32142116 100644 --- a/tests/TestData/HtmlOutput/qr-full-set.html +++ b/tests/TestData/HtmlOutput/qr-full-set.html @@ -196,7 +196,7 @@CHF
@@ -211,7 +211,9 @@25.90
CH44 3199 9123 0008 8901 2
Thomas LeClaire
Rue examplaire 22a
-CH-1000 Lausanne
12 34567 89012 34567 89012 34567
Invoice 1234568
Thomas LeClaire
+CH-1000 Lausanne
12 34567 89012 34567 89012 34567
Invoice 1234568
+Gardening work
+Bill Information
Thomas LeClaire
Rue examplaire 22a
CH-1000 Lausanne
CHF
@@ -221,7 +221,9 @@25.90
CH44 3199 9123 0008 8901 2
Thomas LeClaire
Rue examplaire 22a
-CH-1000 Lausanne
12 34567 89012 34567 89012 34567
Invoice 1234568
Thomas LeClaire
+CH-1000 Lausanne
12 34567 89012 34567 89012 34567
Invoice 1234568
+Gardening work
+Bill Information
Thomas LeClaire
Rue examplaire 22a
CH-1000 Lausanne
CHF
diff --git a/tests/TestData/HtmlOutput/qr-minimal-setup.print.html b/tests/TestData/HtmlOutput/qr-minimal-setup.print.html index bedf0cb4..408a9f70 100644 --- a/tests/TestData/HtmlOutput/qr-minimal-setup.print.html +++ b/tests/TestData/HtmlOutput/qr-minimal-setup.print.html @@ -204,7 +204,7 @@CHF
diff --git a/tests/TestData/HtmlOutput/qr-payment-information-without-amount-but-debtor.html b/tests/TestData/HtmlOutput/qr-payment-information-without-amount-but-debtor.html index 433b345a..50e691f2 100644 --- a/tests/TestData/HtmlOutput/qr-payment-information-without-amount-but-debtor.html +++ b/tests/TestData/HtmlOutput/qr-payment-information-without-amount-but-debtor.html @@ -196,7 +196,7 @@EUR
diff --git a/tests/TestData/HtmlOutput/qr-payment-information-without-amount-but-debtor.print.html b/tests/TestData/HtmlOutput/qr-payment-information-without-amount-but-debtor.print.html index dd95bebc..98532415 100644 --- a/tests/TestData/HtmlOutput/qr-payment-information-without-amount-but-debtor.print.html +++ b/tests/TestData/HtmlOutput/qr-payment-information-without-amount-but-debtor.print.html @@ -206,7 +206,7 @@EUR
diff --git a/tests/TestData/HtmlOutput/qr-payment-information-without-amount.html b/tests/TestData/HtmlOutput/qr-payment-information-without-amount.html index 8186dde1..51154c90 100644 --- a/tests/TestData/HtmlOutput/qr-payment-information-without-amount.html +++ b/tests/TestData/HtmlOutput/qr-payment-information-without-amount.html @@ -194,7 +194,7 @@EUR
diff --git a/tests/TestData/HtmlOutput/qr-payment-information-without-amount.print.html b/tests/TestData/HtmlOutput/qr-payment-information-without-amount.print.html index 2105a764..0893cd5f 100644 --- a/tests/TestData/HtmlOutput/qr-payment-information-without-amount.print.html +++ b/tests/TestData/HtmlOutput/qr-payment-information-without-amount.print.html @@ -204,7 +204,7 @@EUR
diff --git a/tests/TestData/HtmlOutput/qr-payment-information-zero-amount.html b/tests/TestData/HtmlOutput/qr-payment-information-zero-amount.html index 4140a07b..f88cfa70 100644 --- a/tests/TestData/HtmlOutput/qr-payment-information-zero-amount.html +++ b/tests/TestData/HtmlOutput/qr-payment-information-zero-amount.html @@ -194,7 +194,7 @@EUR
diff --git a/tests/TestData/HtmlOutput/qr-payment-information-zero-amount.print.html b/tests/TestData/HtmlOutput/qr-payment-information-zero-amount.print.html index 0823974a..f43e6b90 100644 --- a/tests/TestData/HtmlOutput/qr-payment-information-zero-amount.print.html +++ b/tests/TestData/HtmlOutput/qr-payment-information-zero-amount.print.html @@ -204,7 +204,7 @@EUR
diff --git a/tests/TestData/HtmlOutput/qr-payment-reference-non.html b/tests/TestData/HtmlOutput/qr-payment-reference-non.html index 76ab6c98..9591c961 100644 --- a/tests/TestData/HtmlOutput/qr-payment-reference-non.html +++ b/tests/TestData/HtmlOutput/qr-payment-reference-non.html @@ -194,7 +194,7 @@CHF
diff --git a/tests/TestData/HtmlOutput/qr-payment-reference-non.print.html b/tests/TestData/HtmlOutput/qr-payment-reference-non.print.html index 43008d6e..6b06f7d4 100644 --- a/tests/TestData/HtmlOutput/qr-payment-reference-non.print.html +++ b/tests/TestData/HtmlOutput/qr-payment-reference-non.print.html @@ -204,7 +204,7 @@CHF
diff --git a/tests/TestData/HtmlOutput/qr-payment-reference-scor.html b/tests/TestData/HtmlOutput/qr-payment-reference-scor.html index 3ca2d6af..f1a85f67 100644 --- a/tests/TestData/HtmlOutput/qr-payment-reference-scor.html +++ b/tests/TestData/HtmlOutput/qr-payment-reference-scor.html @@ -194,7 +194,7 @@CHF
diff --git a/tests/TestData/HtmlOutput/qr-payment-reference-scor.print.html b/tests/TestData/HtmlOutput/qr-payment-reference-scor.print.html index 7652d323..f4463353 100644 --- a/tests/TestData/HtmlOutput/qr-payment-reference-scor.print.html +++ b/tests/TestData/HtmlOutput/qr-payment-reference-scor.print.html @@ -204,7 +204,7 @@CHF
diff --git a/tests/TestData/HtmlOutput/qr-ultimate-debtor.html b/tests/TestData/HtmlOutput/qr-ultimate-debtor.html index 7f259aad..bbc723b3 100644 --- a/tests/TestData/HtmlOutput/qr-ultimate-debtor.html +++ b/tests/TestData/HtmlOutput/qr-ultimate-debtor.html @@ -196,7 +196,7 @@CHF
diff --git a/tests/TestData/HtmlOutput/qr-ultimate-debtor.print.html b/tests/TestData/HtmlOutput/qr-ultimate-debtor.print.html index de7b7c86..a73871ef 100644 --- a/tests/TestData/HtmlOutput/qr-ultimate-debtor.print.html +++ b/tests/TestData/HtmlOutput/qr-ultimate-debtor.print.html @@ -206,7 +206,7 @@CHF
diff --git a/tests/TestData/QrCodes/TestDataTest.php b/tests/TestData/QrCodes/TestDataTest.php index dcb2a1be..b507ed40 100644 --- a/tests/TestData/QrCodes/TestDataTest.php +++ b/tests/TestData/QrCodes/TestDataTest.php @@ -23,18 +23,18 @@ public function testQrFile($file, $hash) public function qrFileProvider() { return [ - [__DIR__ . '/qr-additional-information.png', '837d81343c5f88e9848bdf2d693daccb'], - [__DIR__ . '/qr-alternative-schemes.png', '72a10b79c4d6011abe784c556caf5e61'], - [__DIR__ . '/qr-full-set.png', 'c0607307841dc5cbdf2c1c5499f869f7'], - [__DIR__ . '/qr-minimal-setup.png', '86fb5a62d7a87d7e31ea91bb5c93bbf9'], - [__DIR__ . '/qr-payment-information-without-amount.png', '0a22b900adc3f65e3aac674c1e891e2d'], - [__DIR__ . '/qr-payment-information-without-amount-but-debtor.png', 'd3be7875b26b4c9f9f92434a947c5f5d'], - [__DIR__ . '/qr-payment-information-zero-amount.png', 'b22b78c16c79dc84a4d890fb95e8d0c9'], - [__DIR__ . '/qr-payment-reference-non.png', '92dd161c4cbecc1fdd00222d346f29d8'], - [__DIR__ . '/qr-payment-reference-scor.png', '51113e54434835e0e628fbe9edc8f333'], - [__DIR__ . '/qr-ultimate-debtor.png', '826e89dbbea4e48ce0b88fb708e7f990'], + [__DIR__ . '/qr-additional-information.png', 'fb9c45f2bc0bf92e941abc64ba50bebb'], + [__DIR__ . '/qr-alternative-schemes.png', '138ac88c4f5d9d127fb11326daa9292a'], + [__DIR__ . '/qr-full-set.png', '969b870f49362a611f62235190fcf03a'], + [__DIR__ . '/qr-minimal-setup.png', '8ed64ec5a2c7a02b1e07aa5eb8e3a7a0'], + [__DIR__ . '/qr-payment-information-without-amount.png', '831b0edb4aca22f5df5f8dec530461dc'], + [__DIR__ . '/qr-payment-information-without-amount-but-debtor.png', '9d4db076385276242cc4a362ee29b58d'], + [__DIR__ . '/qr-payment-information-zero-amount.png', '1e35e396920f07fd0933ecdaabe910f9'], + [__DIR__ . '/qr-payment-reference-non.png', 'abb3ace7ea9f3ef848a335eba98a2375'], + [__DIR__ . '/qr-payment-reference-scor.png', '7e3389311c54ff27e1537d1083656a07'], + [__DIR__ . '/qr-ultimate-debtor.png', 'ac5d8f4155c1d10460de5a0aaea35767'], - [__DIR__ . '/proof-of-validation.png', 'f539fb9c08472ac1f3d74598052e9e5b'], + [__DIR__ . '/proof-of-validation.png', '6bf37bad5b10f54971068a90de36fd0e'], ]; } } \ No newline at end of file diff --git a/tests/TestData/QrCodes/proof-of-validation.png b/tests/TestData/QrCodes/proof-of-validation.png index 3bc0a11f..cd6d5652 100644 Binary files a/tests/TestData/QrCodes/proof-of-validation.png and b/tests/TestData/QrCodes/proof-of-validation.png differ diff --git a/tests/TestData/QrCodes/qr-additional-information.png b/tests/TestData/QrCodes/qr-additional-information.png index d11a9152..8a4045e3 100644 Binary files a/tests/TestData/QrCodes/qr-additional-information.png and b/tests/TestData/QrCodes/qr-additional-information.png differ diff --git a/tests/TestData/QrCodes/qr-additional-information.txt b/tests/TestData/QrCodes/qr-additional-information.txt new file mode 100644 index 00000000..323a0283 --- /dev/null +++ b/tests/TestData/QrCodes/qr-additional-information.txt @@ -0,0 +1,32 @@ +SPC +0200 +1 +CH4431999123000889012 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + +25.90 +CHF + + + + + + + +QRR +123456789012345678901234567 +Invoice 1234568 Gardening work +EPD +Bill Information \ No newline at end of file diff --git a/tests/TestData/QrCodes/qr-alternative-schemes.png b/tests/TestData/QrCodes/qr-alternative-schemes.png index 1bc67ee4..7b664296 100644 Binary files a/tests/TestData/QrCodes/qr-alternative-schemes.png and b/tests/TestData/QrCodes/qr-alternative-schemes.png differ diff --git a/tests/TestData/QrCodes/qr-alternative-schemes.txt b/tests/TestData/QrCodes/qr-alternative-schemes.txt new file mode 100644 index 00000000..69595bb3 --- /dev/null +++ b/tests/TestData/QrCodes/qr-alternative-schemes.txt @@ -0,0 +1,34 @@ +SPC +0200 +1 +CH4431999123000889012 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + +25.90 +CHF + + + + + + + +QRR +123456789012345678901234567 + +EPD + +foo +foo \ No newline at end of file diff --git a/tests/TestData/QrCodes/qr-full-set.png b/tests/TestData/QrCodes/qr-full-set.png index b6a494bc..f7ce3ada 100644 Binary files a/tests/TestData/QrCodes/qr-full-set.png and b/tests/TestData/QrCodes/qr-full-set.png differ diff --git a/tests/TestData/QrCodes/qr-full-set.txt b/tests/TestData/QrCodes/qr-full-set.txt new file mode 100644 index 00000000..f0e2227e --- /dev/null +++ b/tests/TestData/QrCodes/qr-full-set.txt @@ -0,0 +1,34 @@ +SPC +0200 +1 +CH4431999123000889012 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + +25.90 +CHF +K +Thomas LeClaire +Rue examplaire 22a +1000 Lausanne + + +CH +QRR +123456789012345678901234567 +Invoice 1234568 Gardening work +EPD +Bill Information +foo +foo \ No newline at end of file diff --git a/tests/TestData/QrCodes/qr-minimal-setup.png b/tests/TestData/QrCodes/qr-minimal-setup.png index f1d411aa..bf26c8b6 100644 Binary files a/tests/TestData/QrCodes/qr-minimal-setup.png and b/tests/TestData/QrCodes/qr-minimal-setup.png differ diff --git a/tests/TestData/QrCodes/qr-minimal-setup.txt b/tests/TestData/QrCodes/qr-minimal-setup.txt new file mode 100644 index 00000000..c5ccf247 --- /dev/null +++ b/tests/TestData/QrCodes/qr-minimal-setup.txt @@ -0,0 +1,31 @@ +SPC +0200 +1 +CH4431999123000889012 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + +25.90 +CHF + + + + + + + +QRR +123456789012345678901234567 + +EPD diff --git a/tests/TestData/QrCodes/qr-payment-information-without-amount-but-debtor.png b/tests/TestData/QrCodes/qr-payment-information-without-amount-but-debtor.png index 85f8dd69..c8ff1b35 100644 Binary files a/tests/TestData/QrCodes/qr-payment-information-without-amount-but-debtor.png and b/tests/TestData/QrCodes/qr-payment-information-without-amount-but-debtor.png differ diff --git a/tests/TestData/QrCodes/qr-payment-information-without-amount-but-debtor.txt b/tests/TestData/QrCodes/qr-payment-information-without-amount-but-debtor.txt new file mode 100644 index 00000000..b9c35a4c --- /dev/null +++ b/tests/TestData/QrCodes/qr-payment-information-without-amount-but-debtor.txt @@ -0,0 +1,31 @@ +SPC +0200 +1 +CH4431999123000889012 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + + +EUR +K +Thomas LeClaire +Rue examplaire 22a +1000 Lausanne + + +CH +QRR +123456789012345678901234567 + +EPD diff --git a/tests/TestData/QrCodes/qr-payment-information-without-amount.png b/tests/TestData/QrCodes/qr-payment-information-without-amount.png index 384ad992..c766ca3e 100644 Binary files a/tests/TestData/QrCodes/qr-payment-information-without-amount.png and b/tests/TestData/QrCodes/qr-payment-information-without-amount.png differ diff --git a/tests/TestData/QrCodes/qr-payment-information-without-amount.txt b/tests/TestData/QrCodes/qr-payment-information-without-amount.txt new file mode 100644 index 00000000..4c0c6968 --- /dev/null +++ b/tests/TestData/QrCodes/qr-payment-information-without-amount.txt @@ -0,0 +1,31 @@ +SPC +0200 +1 +CH4431999123000889012 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + + +EUR + + + + + + + +QRR +123456789012345678901234567 + +EPD diff --git a/tests/TestData/QrCodes/qr-payment-information-zero-amount.png b/tests/TestData/QrCodes/qr-payment-information-zero-amount.png index a902b307..f70bd213 100644 Binary files a/tests/TestData/QrCodes/qr-payment-information-zero-amount.png and b/tests/TestData/QrCodes/qr-payment-information-zero-amount.png differ diff --git a/tests/TestData/QrCodes/qr-payment-information-zero-amount.txt b/tests/TestData/QrCodes/qr-payment-information-zero-amount.txt new file mode 100644 index 00000000..3e814a4b --- /dev/null +++ b/tests/TestData/QrCodes/qr-payment-information-zero-amount.txt @@ -0,0 +1,31 @@ +SPC +0200 +1 +CH4431999123000889012 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + +0.00 +EUR + + + + + + + +QRR +123456789012345678901234567 + +EPD diff --git a/tests/TestData/QrCodes/qr-payment-reference-non.png b/tests/TestData/QrCodes/qr-payment-reference-non.png index 0ef84fc6..6df6c239 100644 Binary files a/tests/TestData/QrCodes/qr-payment-reference-non.png and b/tests/TestData/QrCodes/qr-payment-reference-non.png differ diff --git a/tests/TestData/QrCodes/qr-payment-reference-non.txt b/tests/TestData/QrCodes/qr-payment-reference-non.txt new file mode 100644 index 00000000..72578de1 --- /dev/null +++ b/tests/TestData/QrCodes/qr-payment-reference-non.txt @@ -0,0 +1,31 @@ +SPC +0200 +1 +CH9300762011623852957 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + +25.90 +CHF + + + + + + + +NON + + +EPD diff --git a/tests/TestData/QrCodes/qr-payment-reference-scor.png b/tests/TestData/QrCodes/qr-payment-reference-scor.png index fca4de63..899a3224 100644 Binary files a/tests/TestData/QrCodes/qr-payment-reference-scor.png and b/tests/TestData/QrCodes/qr-payment-reference-scor.png differ diff --git a/tests/TestData/QrCodes/qr-payment-reference-scor.txt b/tests/TestData/QrCodes/qr-payment-reference-scor.txt new file mode 100644 index 00000000..fc73a537 --- /dev/null +++ b/tests/TestData/QrCodes/qr-payment-reference-scor.txt @@ -0,0 +1,31 @@ +SPC +0200 +1 +CH9300762011623852957 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + +25.90 +CHF + + + + + + + +SCOR +RF18539007547034 + +EPD diff --git a/tests/TestData/QrCodes/qr-ultimate-debtor.png b/tests/TestData/QrCodes/qr-ultimate-debtor.png index 8dc27291..cb067ca2 100644 Binary files a/tests/TestData/QrCodes/qr-ultimate-debtor.png and b/tests/TestData/QrCodes/qr-ultimate-debtor.png differ diff --git a/tests/TestData/QrCodes/qr-ultimate-debtor.txt b/tests/TestData/QrCodes/qr-ultimate-debtor.txt new file mode 100644 index 00000000..990135fd --- /dev/null +++ b/tests/TestData/QrCodes/qr-ultimate-debtor.txt @@ -0,0 +1,31 @@ +SPC +0200 +1 +CH4431999123000889012 +S +Thomas LeClaire +Rue examplaire +22a +1000 +Lausanne +CH + + + + + + + +25.90 +CHF +K +Thomas LeClaire +Rue examplaire 22a +1000 Lausanne + + +CH +QRR +123456789012345678901234567 + +EPD diff --git a/tests/TestData/TcPdfOutput/qr-additional-information.pdf b/tests/TestData/TcPdfOutput/qr-additional-information.pdf index 4064f8cf..5a59cefd 100644 Binary files a/tests/TestData/TcPdfOutput/qr-additional-information.pdf and b/tests/TestData/TcPdfOutput/qr-additional-information.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-additional-information.print.pdf b/tests/TestData/TcPdfOutput/qr-additional-information.print.pdf index b0b1bdc9..6ca47fa7 100644 Binary files a/tests/TestData/TcPdfOutput/qr-additional-information.print.pdf and b/tests/TestData/TcPdfOutput/qr-additional-information.print.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-alternative-schemes.pdf b/tests/TestData/TcPdfOutput/qr-alternative-schemes.pdf index 6ef6dab1..289a4660 100644 Binary files a/tests/TestData/TcPdfOutput/qr-alternative-schemes.pdf and b/tests/TestData/TcPdfOutput/qr-alternative-schemes.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-alternative-schemes.print.pdf b/tests/TestData/TcPdfOutput/qr-alternative-schemes.print.pdf index 59a0ad26..c5b5b694 100644 Binary files a/tests/TestData/TcPdfOutput/qr-alternative-schemes.print.pdf and b/tests/TestData/TcPdfOutput/qr-alternative-schemes.print.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-full-set.pdf b/tests/TestData/TcPdfOutput/qr-full-set.pdf index b648ab5e..b5bc388b 100644 Binary files a/tests/TestData/TcPdfOutput/qr-full-set.pdf and b/tests/TestData/TcPdfOutput/qr-full-set.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-full-set.print.pdf b/tests/TestData/TcPdfOutput/qr-full-set.print.pdf index d6298dca..a8417d0e 100644 Binary files a/tests/TestData/TcPdfOutput/qr-full-set.print.pdf and b/tests/TestData/TcPdfOutput/qr-full-set.print.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-minimal-setup.pdf b/tests/TestData/TcPdfOutput/qr-minimal-setup.pdf index 6ab3ad97..56f76e6d 100644 Binary files a/tests/TestData/TcPdfOutput/qr-minimal-setup.pdf and b/tests/TestData/TcPdfOutput/qr-minimal-setup.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-minimal-setup.print.pdf b/tests/TestData/TcPdfOutput/qr-minimal-setup.print.pdf index 3742561a..78c9ffe3 100644 Binary files a/tests/TestData/TcPdfOutput/qr-minimal-setup.print.pdf and b/tests/TestData/TcPdfOutput/qr-minimal-setup.print.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-information-without-amount-but-debtor.pdf b/tests/TestData/TcPdfOutput/qr-payment-information-without-amount-but-debtor.pdf index 3eb4c730..95409b59 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-information-without-amount-but-debtor.pdf and b/tests/TestData/TcPdfOutput/qr-payment-information-without-amount-but-debtor.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-information-without-amount-but-debtor.print.pdf b/tests/TestData/TcPdfOutput/qr-payment-information-without-amount-but-debtor.print.pdf index fd01eaf3..6afc0280 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-information-without-amount-but-debtor.print.pdf and b/tests/TestData/TcPdfOutput/qr-payment-information-without-amount-but-debtor.print.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-information-without-amount.pdf b/tests/TestData/TcPdfOutput/qr-payment-information-without-amount.pdf index 71ea67ef..7352a315 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-information-without-amount.pdf and b/tests/TestData/TcPdfOutput/qr-payment-information-without-amount.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-information-without-amount.print.pdf b/tests/TestData/TcPdfOutput/qr-payment-information-without-amount.print.pdf index 587a1306..bf85b98a 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-information-without-amount.print.pdf and b/tests/TestData/TcPdfOutput/qr-payment-information-without-amount.print.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-information-zero-amount.pdf b/tests/TestData/TcPdfOutput/qr-payment-information-zero-amount.pdf index f1714e5b..a20793ba 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-information-zero-amount.pdf and b/tests/TestData/TcPdfOutput/qr-payment-information-zero-amount.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-information-zero-amount.print.pdf b/tests/TestData/TcPdfOutput/qr-payment-information-zero-amount.print.pdf index eba92e45..319ce047 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-information-zero-amount.print.pdf and b/tests/TestData/TcPdfOutput/qr-payment-information-zero-amount.print.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-reference-non.pdf b/tests/TestData/TcPdfOutput/qr-payment-reference-non.pdf index 06e8a721..e03dfc11 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-reference-non.pdf and b/tests/TestData/TcPdfOutput/qr-payment-reference-non.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-reference-non.print.pdf b/tests/TestData/TcPdfOutput/qr-payment-reference-non.print.pdf index 53062139..2fe451d0 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-reference-non.print.pdf and b/tests/TestData/TcPdfOutput/qr-payment-reference-non.print.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-reference-scor.pdf b/tests/TestData/TcPdfOutput/qr-payment-reference-scor.pdf index 957e0935..774c3002 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-reference-scor.pdf and b/tests/TestData/TcPdfOutput/qr-payment-reference-scor.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-payment-reference-scor.print.pdf b/tests/TestData/TcPdfOutput/qr-payment-reference-scor.print.pdf index 4423b70e..c71c3c54 100644 Binary files a/tests/TestData/TcPdfOutput/qr-payment-reference-scor.print.pdf and b/tests/TestData/TcPdfOutput/qr-payment-reference-scor.print.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-ultimate-debtor.pdf b/tests/TestData/TcPdfOutput/qr-ultimate-debtor.pdf index beb3355a..1252f3cc 100644 Binary files a/tests/TestData/TcPdfOutput/qr-ultimate-debtor.pdf and b/tests/TestData/TcPdfOutput/qr-ultimate-debtor.pdf differ diff --git a/tests/TestData/TcPdfOutput/qr-ultimate-debtor.print.pdf b/tests/TestData/TcPdfOutput/qr-ultimate-debtor.print.pdf index f871cbff..2309fd59 100644 Binary files a/tests/TestData/TcPdfOutput/qr-ultimate-debtor.print.pdf and b/tests/TestData/TcPdfOutput/qr-ultimate-debtor.print.pdf differ diff --git a/tests/TestQrBillCreatorTrait.php b/tests/TestQrBillCreatorTrait.php index 31b96e0d..e6adcadc 100644 --- a/tests/TestQrBillCreatorTrait.php +++ b/tests/TestQrBillCreatorTrait.php @@ -14,6 +14,7 @@ trait TestQrBillCreatorTrait { + protected $regenerateReferenceFiles = false; public function validQrBillsProvider() { @@ -283,7 +284,7 @@ public function invalidAlternativeScheme(QrBill &$qrBill) public function additionalInformation(QrBill &$qrBill) { - $additionalInformation = AdditionalInformation::create('Invoice 1234568'); + $additionalInformation = AdditionalInformation::create("Invoice 1234568\nGardening work", 'Bill Information'); $qrBill->setAdditionalInformation($additionalInformation); }