mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 20:17:17 +00:00
🔥 ok, what is going on here, GH?
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user