🔥 v6.0 third pass: test clean-up (again)

This commit is contained in:
smiley
2023-11-26 18:42:45 +01:00
parent 2478f75324
commit 2d2a00fabb
37 changed files with 398 additions and 249 deletions
+4 -3
View File
@@ -14,6 +14,7 @@ namespace chillerlan\QRCodeTest\Output;
use chillerlan\QRCode\Data\QRMatrix;
use GdImage;
use function extension_loaded;
/**
* Tests the QRGdImage output module
@@ -54,7 +55,7 @@ abstract class QRGdImageTestAbstract extends QROutputTestAbstract{
QRMatrix::M_DATA => [255, 255, 255],
];
$this->outputInterface = new $this->FQN($this->options, $this->matrix);
$this->outputInterface = $this->getOutputInterface($this->options, $this->matrix);
$this->outputInterface->dump();
$this::assertTrue(true); // tricking the code coverage
@@ -62,14 +63,14 @@ abstract class QRGdImageTestAbstract extends QROutputTestAbstract{
public function testOutputGetResource():void{
$this->options->returnResource = true;
$this->outputInterface = new $this->FQN($this->options, $this->matrix);
$this->outputInterface = $this->getOutputInterface($this->options, $this->matrix);
$this::assertInstanceOf(GdImage::class, $this->outputInterface->dump());
}
public function testBase64MimeType():void{
$this->options->outputBase64 = true;
$this->outputInterface = new $this->FQN($this->options, $this->matrix);
$this->outputInterface = $this->getOutputInterface($this->options, $this->matrix);
$this::assertStringContainsString($this->outputInterface::MIME_TYPE, $this->outputInterface->dump());
}