mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-15 00:06:46 +00:00
:octocat: fixes/implements #223
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
namespace chillerlan\QRCodeTest\Output;
|
||||
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\Output\QRGdImage;
|
||||
use const PHP_MAJOR_VERSION;
|
||||
|
||||
/**
|
||||
@@ -19,8 +18,6 @@ use const PHP_MAJOR_VERSION;
|
||||
*/
|
||||
abstract class QRGdImageTestAbstract extends QROutputTestAbstract{
|
||||
|
||||
protected string $FQN = QRGdImage::class;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
@@ -62,7 +59,7 @@ abstract class QRGdImageTestAbstract extends QROutputTestAbstract{
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @todo: remove php version check in v6
|
||||
*/
|
||||
public function testOutputGetResource():void{
|
||||
$this->options->returnResource = true;
|
||||
@@ -76,4 +73,11 @@ abstract class QRGdImageTestAbstract extends QROutputTestAbstract{
|
||||
: $this::assertIsResource($actual);
|
||||
}
|
||||
|
||||
public function testBase64MimeType():void{
|
||||
$this->options->outputBase64 = true;
|
||||
$this->outputInterface = new $this->FQN($this->options, $this->matrix);
|
||||
|
||||
$this::assertStringContainsString($this->outputInterface::MIME_TYPE, $this->outputInterface->dump());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user