mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-20 20:31:03 +00:00
26 lines
587 B
PHP
26 lines
587 B
PHP
<?php
|
|
/**
|
|
* Class QRCodeReaderGDTest
|
|
*
|
|
* @created 12.12.2021
|
|
* @author smiley <smiley@chillerlan.net>
|
|
* @copyright 2021 smiley
|
|
* @license MIT
|
|
*/
|
|
|
|
namespace chillerlan\QRCodeTest;
|
|
|
|
use chillerlan\QRCode\QROptions;
|
|
use chillerlan\QRCode\Common\{GDLuminanceSource, LuminanceSourceInterface};
|
|
|
|
/**
|
|
* Tests the GD based reader
|
|
*/
|
|
final class QRCodeReaderGDTest extends QRCodeReaderTestAbstract{
|
|
|
|
protected function getLuminanceSourceFromFile(string $file, QROptions $options):LuminanceSourceInterface{
|
|
return GDLuminanceSource::fromFile($file, $options);
|
|
}
|
|
|
|
}
|