mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-09-04 06:32:42 +00:00
✨ + QREpsTest
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* QREpsTest.php
|
||||
*
|
||||
* @created 16.03.2023
|
||||
* @author smiley <smiley@chillerlan.net>
|
||||
* @copyright 2023 smiley
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
namespace chillerlan\QRCodeTest\Output;
|
||||
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\Output\QREps;
|
||||
use chillerlan\QRCode\Output\QROutputInterface;
|
||||
|
||||
class QREpsTest extends QROutputTestAbstract{
|
||||
|
||||
protected string $FQN = QREps::class;
|
||||
protected string $type = QROutputInterface::EPS;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function testSetModuleValues():void{
|
||||
|
||||
$this->options->moduleValues = [
|
||||
// data
|
||||
QRMatrix::M_DATA_DARK => [0, 0, 0],
|
||||
QRMatrix::M_DATA => [255, 255, 255],
|
||||
];
|
||||
|
||||
$this->outputInterface = new $this->FQN($this->options, $this->matrix);
|
||||
$this->outputInterface->dump();
|
||||
|
||||
$this::assertTrue(true); // tricking the code coverage
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user