mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-17 13:24:06 +00:00
33 lines
814 B
PHP
33 lines
814 B
PHP
<?php
|
|
/**
|
|
* Class QRCodeReaderGDTest
|
|
*
|
|
* @created 12.12.2021
|
|
* @author smiley <smiley@chillerlan.net>
|
|
* @copyright 2021 smiley
|
|
* @license MIT
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace chillerlan\QRCodeTest;
|
|
|
|
use chillerlan\QRCode\Common\{GDLuminanceSource, LuminanceSourceInterface};
|
|
use chillerlan\QRCode\QROptions;
|
|
use chillerlan\Settings\SettingsContainerInterface;
|
|
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
|
|
|
|
/**
|
|
* Tests the GD based reader
|
|
*/
|
|
#[RequiresPhpExtension('gd')]
|
|
final class QRCodeReaderGDTest extends QRCodeReaderTestAbstract{
|
|
|
|
protected function getLuminanceSourceFromFile(
|
|
string $file,
|
|
SettingsContainerInterface|QROptions $options,
|
|
):LuminanceSourceInterface{
|
|
return GDLuminanceSource::fromFile($file, $options);
|
|
}
|
|
|
|
}
|