Skip to content

Commit b18647a

Browse files
committed
✨ + QREpsTest
1 parent 3afa888 commit b18647a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

tests/Output/QREpsTest.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
/**
3+
* QREpsTest.php
4+
*
5+
* @created 16.03.2023
6+
* @author smiley <[email protected]>
7+
* @copyright 2023 smiley
8+
* @license MIT
9+
*/
10+
11+
namespace chillerlan\QRCodeTest\Output;
12+
13+
use chillerlan\QRCode\Data\QRMatrix;
14+
use chillerlan\QRCode\Output\QREps;
15+
use chillerlan\QRCode\Output\QROutputInterface;
16+
17+
class QREpsTest extends QROutputTestAbstract{
18+
19+
protected string $FQN = QREps::class;
20+
protected string $type = QROutputInterface::EPS;
21+
22+
/**
23+
* @inheritDoc
24+
*/
25+
public function testSetModuleValues():void{
26+
27+
$this->options->moduleValues = [
28+
// data
29+
QRMatrix::M_DATA_DARK => [0, 0, 0],
30+
QRMatrix::M_DATA => [255, 255, 255],
31+
];
32+
33+
$this->outputInterface = new $this->FQN($this->options, $this->matrix);
34+
$this->outputInterface->dump();
35+
36+
$this::assertTrue(true); // tricking the code coverage
37+
}
38+
39+
}

0 commit comments

Comments
 (0)