:octocat: fixes/implements #223

This commit is contained in:
smiley
2023-10-25 21:30:48 +02:00
parent 5e8d10df82
commit ab358f2f38
30 changed files with 569 additions and 114 deletions
+8 -4
View File
@@ -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());
}
}