diff --git a/tests/Output/QRFpdfTest.php b/tests/Output/QRFpdfTest.php index 029c62cc7..35e0bffba 100644 --- a/tests/Output/QRFpdfTest.php +++ b/tests/Output/QRFpdfTest.php @@ -79,10 +79,10 @@ class QRFpdfTest extends QROutputTestAbstract{ public function testRenderImage(string $type):void{ $this->options->outputType = $type; - $this::assertStringContainsString( + $this::assertSame( // substr() to avoid CreationDate substr(file_get_contents(__DIR__.'/samples/'.$type), 0, 2560), - (new QRCode($this->options))->render('test') + substr((new QRCode($this->options))->render('test'), 0, 2560) ); }