🔥 ok, what is going on here, GH?

This commit is contained in:
codemasher
2020-06-03 22:25:45 +02:00
parent f1828aa318
commit 53e925952f
+7 -5
View File
@@ -79,11 +79,13 @@ class QRFpdfTest extends QROutputTestAbstract{
public function testRenderImage(string $type):void{
$this->options->outputType = $type;
$this::assertSame(
// substr() to avoid CreationDate
substr(file_get_contents(__DIR__.'/samples/'.$type), 0, 2560),
substr((new QRCode($this->options))->render('test'), 0, 2560)
);
// substr() to avoid CreationDate
$expected = substr(file_get_contents(__DIR__.'/samples/'.$type), 0, 2560);
$actual = substr((new QRCode($this->options))->render('test'), 0, 2560);
\var_dump([$expected, $actual]);
$this::assertSame($expected, $actual);
}
}