mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-21 19:33:11 +00:00
36 lines
676 B
PHP
36 lines
676 B
PHP
<?php
|
|
/**
|
|
* Class QRCodeReaderImagickTest
|
|
*
|
|
* @created 12.12.2021
|
|
* @author smiley <smiley@chillerlan.net>
|
|
* @copyright 2021 smiley
|
|
* @license MIT
|
|
*/
|
|
|
|
namespace chillerlan\QRCodeTest;
|
|
|
|
use chillerlan\QRCode\Decoder\IMagickLuminanceSource;
|
|
use function extension_loaded;
|
|
|
|
/**
|
|
* Tests the Imagick based reader
|
|
*/
|
|
final class QRCodeReaderImagickTest extends QRCodeReaderTestAbstract{
|
|
|
|
protected string $FQN = IMagickLuminanceSource::class;
|
|
|
|
|
|
protected function setUp():void{
|
|
|
|
if(!extension_loaded('imagick')){
|
|
$this::markTestSkipped('imagick not installed');
|
|
}
|
|
|
|
parent::setUp();
|
|
|
|
$this->options->readerUseImagickIfAvailable = true;
|
|
}
|
|
|
|
}
|