This commit is contained in:
smiley
2024-05-01 11:50:49 +02:00
parent e3335a6a3b
commit acd38f58bb
+2 -2
View File
@@ -17,7 +17,7 @@ use chillerlan\QRCode\Output\{QRCodeOutputException, QROutputInterface};
use chillerlan\Settings\SettingsContainerInterface;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use ReflectionObject;
/**
* Test abstract for the several (built-in) output modules,
@@ -81,7 +81,7 @@ abstract class QROutputTestAbstract extends TestCase{
$this->options->outputBase64 = false;
$this->outputInterface = $this->getOutputInterface($this->options, $this->matrix);
// create the cache file
$name = (new ReflectionClass($this->outputInterface))->getShortName();
$name = (new ReflectionObject($this->outputInterface))->getShortName();
$fileSubPath = $this::buildDir.'/test.output.'.$name;
$data = $this->outputInterface->dump($this->getBuildPath($fileSubPath));