diff --git a/tests/Output/QROutputTestAbstract.php b/tests/Output/QROutputTestAbstract.php index 64763a338..568bcad3a 100644 --- a/tests/Output/QROutputTestAbstract.php +++ b/tests/Output/QROutputTestAbstract.php @@ -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));