mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-19 18:20:17 +00:00
39 lines
919 B
PHP
39 lines
919 B
PHP
<?php
|
|
/**
|
|
* Class QRMarkupTestAbstract
|
|
*
|
|
* @created 24.12.2017
|
|
* @author Smiley <smiley@chillerlan.net>
|
|
* @copyright 2017 Smiley
|
|
* @license MIT
|
|
*/
|
|
|
|
namespace chillerlan\QRCodeTest\Output;
|
|
|
|
use chillerlan\QRCode\Data\QRMatrix;
|
|
|
|
/**
|
|
* Tests the QRMarkup output module
|
|
*/
|
|
abstract class QRMarkupTestAbstract extends QROutputTestAbstract{
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function testSetModuleValues():void{
|
|
$this->options->imageBase64 = false;
|
|
$this->options->imageTransparent = false;
|
|
$this->options->moduleValues = [
|
|
// data
|
|
QRMatrix::M_DATA | QRMatrix::IS_DARK => '#4A6000',
|
|
QRMatrix::M_DATA => '#ECF9BE',
|
|
];
|
|
|
|
$this->outputInterface = new $this->FQN($this->options, $this->matrix);
|
|
$data = $this->outputInterface->dump();
|
|
$this::assertStringContainsString('#4A6000', $data);
|
|
$this::assertStringContainsString('#ECF9BE', $data);
|
|
}
|
|
|
|
}
|