mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-17 14:31:08 +00:00
33 lines
743 B
PHP
33 lines
743 B
PHP
<?php
|
|
/**
|
|
* Class QRImagickTest
|
|
*
|
|
* @filesource QRImagickTest.php
|
|
* @created 04.07.2018
|
|
* @package chillerlan\QRCodeTest\Output
|
|
* @author smiley <smiley@chillerlan.net>
|
|
* @copyright 2018 smiley
|
|
* @license MIT
|
|
*/
|
|
|
|
namespace chillerlan\QRCodeTest\Output;
|
|
|
|
use chillerlan\QRCode\{QRCode, Output\QRImagick};
|
|
|
|
class QRImagickTest extends QROutputTestAbstract{
|
|
|
|
protected $FQCN = QRImagick::class;
|
|
|
|
public function testImageOutput(){
|
|
$type = QRCode::OUTPUT_IMAGICK;
|
|
|
|
$this->options->outputType = $type;
|
|
$this->setOutputInterface();
|
|
$this->outputInterface->dump($this::cachefile.$type);
|
|
$img = $this->outputInterface->dump();
|
|
|
|
$this->assertSame($img, file_get_contents($this::cachefile.$type));
|
|
}
|
|
|
|
}
|