11<?php
22use Mike42 \Escpos \EscposImage ;
3+ use PHPUnit \Framework \Attributes \Medium ;
34
5+ #[Medium]
46class ExampleTest extends PHPUnit \Framework \TestCase
57{
68 /* Verify that the examples don't fizzle out with fatal errors */
@@ -11,9 +13,6 @@ public function setUp(): void
1113 $ this -> exampleDir = dirname (__FILE__ ) . "/../../example/ " ;
1214 }
1315
14- /**
15- * @medium
16- */
1716 public function testBitImage ()
1817 {
1918 $ this ->markTestSkipped ('Not repeatable on Travis CI. ' );
@@ -22,18 +21,12 @@ public function testBitImage()
2221 $ this -> outpTest ($ outp , "bit-image.bin " );
2322 }
2423
25- /**
26- * @medium
27- */
2824 public function testCharacterEncodings ()
2925 {
3026 $ outp = $ this -> runExample ("character-encodings.php " );
3127 $ this -> outpTest ($ outp , "character-encodings.bin " );
3228 }
3329
34- /**
35- * @medium
36- */
3730 public function testCharacterTables ()
3831 {
3932 $ outp = $ this -> runExample ("character-tables.php " );
@@ -49,9 +42,6 @@ private function outpTest($outp, $fn)
4942 $ this -> assertEquals ($ outp , file_get_contents ($ file ));
5043 }
5144
52- /**
53- * @medium
54- */
5545 public function testDemo ()
5646 {
5747 $ this ->markTestSkipped ('Not repeatable on Travis CI. ' );
@@ -60,9 +50,6 @@ public function testDemo()
6050 $ this -> outpTest ($ outp , "demo.bin " );
6151 }
6252
63- /**
64- * @medium
65- */
6653 public function testGraphics ()
6754 {
6855 $ this ->markTestSkipped ('Not repeatable on Travis CI. ' );
@@ -71,9 +58,6 @@ public function testGraphics()
7158 $ this -> outpTest ($ outp , "graphics.bin " );
7259 }
7360
74- /**
75- * @medium
76- */
7761 public function testReceiptWithLogo ()
7862 {
7963 $ this ->markTestSkipped ('Not repeatable on Travis CI. ' );
@@ -82,54 +66,36 @@ public function testReceiptWithLogo()
8266 $ this -> outpTest ($ outp , "receipt-with-logo.bin " );
8367 }
8468
85- /**
86- * @medium
87- */
8869 public function testQrCode ()
8970 {
9071 $ outp = $ this -> runExample ("qr-code.php " );
9172 $ this -> outpTest ($ outp , "qr-code.bin " );
9273 }
9374
94- /**
95- * @medium
96- */
9775 public function testBarcode ()
9876 {
9977 $ outp = $ this -> runExample ("barcode.php " );
10078 $ this -> outpTest ($ outp , "barcode.bin " );
10179 }
10280
103- /**
104- * @medium
105- */
10681 public function testTextSize ()
10782 {
10883 $ outp = $ this -> runExample ("text-size.php " );
10984 $ this -> outpTest ($ outp , "text-size.bin " );
11085 }
11186
112- /**
113- * @medium
114- */
11587 public function testMarginsAndSpacing ()
11688 {
11789 $ outp = $ this -> runExample ("margins-and-spacing.php " );
11890 $ this -> outpTest ($ outp , "margins-and-spacing.bin " );
11991 }
12092
121- /**
122- * @medium
123- */
12493 public function testPdf417Code ()
12594 {
12695 $ outp = $ this -> runExample ("pdf417-code.php " );
12796 $ this -> outpTest ($ outp , "pdf417-code.bin " );
12897 }
12998
130- /**
131- * @medium
132- */
13399 public function testUnifontPrintBuffer ()
134100 {
135101 $ this ->markTestSkipped ('Not repeatable on Travis CI. ' );
0 commit comments