Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sprain committed Nov 7, 2024
1 parent 632bafa commit f8df108
Show file tree
Hide file tree
Showing 241 changed files with 108 additions and 9,765 deletions.
8 changes: 4 additions & 4 deletions tests/PaymentPart/Output/FpdfOutput/FpdfOutputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ public function testValidQrBills(string $name, QrBill $qrBill): void
'file' => dirname(dirname(dirname(__DIR__))) . '/TestData/FpdfOutput/' . $name . '.print.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true),
'format' => QrCode::FILE_FORMAT_PNG,
'file' => dirname(dirname(dirname(__DIR__))) . '/TestData/FpdfOutput/' . $name . '.scissors.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true)->setVerticalSeparatorSymbolPosition(VerticalSeparatorSymbolPosition::BOTTOM),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true)->setPositionScissorsAtBottom(true),
'format' => QrCode::FILE_FORMAT_PNG,
'file' => __DIR__ . '/../../../TestData/FpdfOutput/' . $name . '.svg.scissorsdown.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setText(true)->setTextDownArrows(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayTextDownArrows(true),
'format' => QrCode::FILE_FORMAT_PNG,
'file' => __DIR__ . '/../../../TestData/FpdfOutput/' . $name . '.svg.textarrows.pdf'
]
Expand Down Expand Up @@ -93,7 +93,7 @@ public function testItThrowsMissingTraitException(): void

$output = new FpdfOutput($qrBill, 'en', $fpdf);
$output
->setPrintOptions((new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true))
->setPrintOptions((new PrintOptions())->setPrintable(false)->setDisplayScissors(true))
->setQrCodeImageFormat(QrCode::FILE_FORMAT_PNG)
->getPaymentPart();
}
Expand Down
8 changes: 4 additions & 4 deletions tests/PaymentPart/Output/FpdfOutput/FpdiOutputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ public function testValidQrBills(string $name, QrBill $qrBill): void
'file' => dirname(dirname(dirname(__DIR__))) . '/TestData/FpdfOutput/' . $name . '.print.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true),
'format' => QrCode::FILE_FORMAT_PNG,
'file' => dirname(dirname(dirname(__DIR__))) . '/TestData/FpdfOutput/' . $name . '.scissors.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true)->setVerticalSeparatorSymbolPosition(VerticalSeparatorSymbolPosition::BOTTOM),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true)->setPositionScissorsAtBottom(true),
'format' => QrCode::FILE_FORMAT_PNG,
'file' => __DIR__ . '/../../../TestData/FpdfOutput/' . $name . '.svg.scissorsdown.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setText(true)->setTextDownArrows(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayTextDownArrows(true),
'format' => QrCode::FILE_FORMAT_PNG,
'file' => __DIR__ . '/../../../TestData/FpdfOutput/' . $name . '.svg.textarrows.pdf'
]
Expand Down Expand Up @@ -92,7 +92,7 @@ public function testItThrowsMissingTraitException(): void

$output = new FpdfOutput($qrBill, 'en', $fpdf);
$output
->setPrintOptions((new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true))
->setPrintOptions((new PrintOptions())->setPrintable(false)->setDisplayScissors(true))
->setQrCodeImageFormat(QrCode::FILE_FORMAT_PNG)
->getPaymentPart();
}
Expand Down
6 changes: 3 additions & 3 deletions tests/PaymentPart/Output/HtmlOutput/HtmlOutputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ public function testValidQrBills(string $name, QrBill $qrBill)
'file' => __DIR__ . '/../../../TestData/HtmlOutput/' . $name . $this->getCompact() . '.svg.print.html'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true),
'format' => QrCode::FILE_FORMAT_SVG,
'file' => __DIR__ . '/../../../TestData/HtmlOutput/' . $name . $this->getCompact() . '.svg.scissors.html'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true)->setVerticalSeparatorSymbolPosition(VerticalSeparatorSymbolPosition::BOTTOM),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true)->setPositionScissorsAtBottom(true),
'format' => QrCode::FILE_FORMAT_SVG,
'file' => __DIR__ . '/../../../TestData/HtmlOutput/' . $name . '.svg.scissorsdown.html'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setText(true)->setTextDownArrows(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayTextDownArrows(true),
'format' => QrCode::FILE_FORMAT_SVG,
'file' => __DIR__ . '/../../../TestData/HtmlOutput/' . $name . '.svg.textarrows.html'
],
Expand Down
6 changes: 3 additions & 3 deletions tests/PaymentPart/Output/TcPdfOutput/FpdiOutputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ public function testValidQrBills(string $name, QrBill $qrBill): void
'file' => __DIR__ . '/../../../TestData/TcPdfOutput/' . $name . '.svg.print.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true),
'format' => QrCode::FILE_FORMAT_SVG,
'file' => __DIR__ . '/../../../TestData/TcPdfOutput/' . $name . '.svg.scissors.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true)->setVerticalSeparatorSymbolPosition(VerticalSeparatorSymbolPosition::BOTTOM),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true)->setPositionScissorsAtBottom(true),
'format' => QrCode::FILE_FORMAT_SVG,
'file' => __DIR__ . '/../../../TestData/TcPdfOutput/' . $name . '.svg.scissorsdown.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setText(true)->setTextDownArrows(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayTextDownArrows(true),
'format' => QrCode::FILE_FORMAT_SVG,
'file' => __DIR__ . '/../../../TestData/TcPdfOutput/' . $name . '.svg.textarrows.pdf'
],
Expand Down
6 changes: 3 additions & 3 deletions tests/PaymentPart/Output/TcPdfOutput/TcPdfOutputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ public function testValidQrBills(string $name, QrBill $qrBill): void
'file' => __DIR__ . '/../../../TestData/TcPdfOutput/' . $name . '.svg.print.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true),
'format' => QrCode::FILE_FORMAT_SVG,
'file' => __DIR__ . '/../../../TestData/TcPdfOutput/' . $name . '.svg.scissors.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setSeparatorSymbol(true)->setVerticalSeparatorSymbolPosition(VerticalSeparatorSymbolPosition::BOTTOM),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayScissors(true)->setPositionScissorsAtBottom(true),
'format' => QrCode::FILE_FORMAT_SVG,
'file' => __DIR__ . '/../../../TestData/TcPdfOutput/' . $name . '.svg.scissorsdown.pdf'
],
[
'layout' => (new PrintOptions())->setPrintable(false)->setText(true)->setTextDownArrows(true),
'layout' => (new PrintOptions())->setPrintable(false)->setDisplayTextDownArrows(true),
'format' => QrCode::FILE_FORMAT_SVG,
'file' => __DIR__ . '/../../../TestData/TcPdfOutput/' . $name . '.svg.textarrows.pdf'
],
Expand Down
Binary file modified tests/TestData/FpdfOutput/qr-additional-information.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-additional-information.print.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-additional-information.scissors.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-alternative-schemes.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-alternative-schemes.print.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-alternative-schemes.scissors.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-full-set.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-full-set.print.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-full-set.scissors.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-full-set.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-full-set.svg.textarrows.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-international-ultimate-debtor.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-minimal-setup.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-minimal-setup.print.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-minimal-setup.scissors.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-minimal-setup.svg.scissorsdown.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-minimal-setup.svg.textarrows.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-payment-information-zero-amount.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-payment-reference-non.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-payment-reference-non.print.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-payment-reference-non.scissors.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-payment-reference-scor.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-payment-reference-scor.print.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-payment-reference-scor.scissors.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-ultimate-debtor.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-ultimate-debtor.print.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-ultimate-debtor.scissors.pdf
Binary file not shown.
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-ultimate-debtor.svg.textarrows.pdf
Binary file not shown.
Binary file modified tests/TestData/FpdfOutput/qr-utf8.svg.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
#qr-bill-receipt {
box-sizing: border-box;
width: 62mm;
border-right: 0.2mm solid black;
border-right: 0.75pt solid black;
padding-left: 5mm;
padding-top: 5mm;
vertical-align: top;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
#qr-bill-receipt {
box-sizing: border-box;
width: 62mm;
border-right: 0.2mm solid black;
border-right: 0.75pt solid black;
padding-left: 5mm;
padding-top: 5mm;
vertical-align: top;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
#qr-bill-receipt {
box-sizing: border-box;
width: 62mm;
border-right: 0.2mm solid black;
border-right: 0.75pt solid black;
padding-left: 5mm;
padding-top: 5mm;
vertical-align: top;
Expand Down Expand Up @@ -188,18 +188,14 @@
left: -23mm;
}

#qr-bill-receipt {
border-right-style: dashed;
}

#qr-bill-receipt:after {
transform: rotate(90deg);
display: inline-block;
content: '\2702';
position: relative;
font-size: 16pt;
top: -95mm;
left: 54.5mm;
left: 54.2mm;
}#qr-bill-separate-info-text {
display: none;
}
Expand Down
232 changes: 0 additions & 232 deletions tests/TestData/HtmlOutput/qr-additional-information.svg.html

This file was deleted.

242 changes: 0 additions & 242 deletions tests/TestData/HtmlOutput/qr-additional-information.svg.print.html

This file was deleted.

Loading

0 comments on commit f8df108

Please sign in to comment.