🚿 move samples
@@ -78,7 +78,7 @@ class QRFpdfTest extends QROutputTestAbstract{
|
||||
$this->options->imageBase64 = false;
|
||||
|
||||
// substr() to avoid CreationDate
|
||||
$expected = substr(file_get_contents(__DIR__.'/samples/'.$type), 0, 2500);
|
||||
$expected = substr(file_get_contents(__DIR__.'/../samples/'.$type), 0, 2500);
|
||||
$actual = substr((new QRCode($this->options))->render('test'), 0, 2500);
|
||||
|
||||
$this::assertSame($expected, $actual);
|
||||
|
||||
@@ -128,7 +128,7 @@ abstract class QROutputTestAbstract extends TestCase{
|
||||
$this->options->outputType = $type;
|
||||
|
||||
$this::assertSame(
|
||||
trim(file_get_contents(__DIR__.'/samples/'.$type)),
|
||||
trim(file_get_contents(__DIR__.'/../samples/'.$type)),
|
||||
trim((new QRCode($this->options))->render('test'))
|
||||
);
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ class QRStringTest extends QROutputTestAbstract{
|
||||
$this->options->outputInterface = MyCustomOutput::class;
|
||||
|
||||
$this::assertSame(
|
||||
file_get_contents(__DIR__.'/samples/custom'),
|
||||
file_get_contents(__DIR__.'/../samples/custom'),
|
||||
(new QRCode($this->options))->render('test')
|
||||
);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class QRCodeReaderTest extends TestCase{
|
||||
}
|
||||
|
||||
$this::assertSame($expected, (string)(new QRCode)
|
||||
->readFromSource(GDLuminanceSource::fromFile(__DIR__.'/qrcodes/'.$img, $this->options)));
|
||||
->readFromSource(GDLuminanceSource::fromFile(__DIR__.'/samples/'.$img, $this->options)));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -94,7 +94,7 @@ class QRCodeReaderTest extends TestCase{
|
||||
}
|
||||
|
||||
$this::assertSame($expected, (string)(new QRCode)
|
||||
->readFromSource(IMagickLuminanceSource::fromFile(__DIR__.'/qrcodes/'.$img, $this->options)));
|
||||
->readFromSource(IMagickLuminanceSource::fromFile(__DIR__.'/samples/'.$img, $this->options)));
|
||||
}
|
||||
|
||||
public function testReaderMultiSegment():void{
|
||||
|
||||
|
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 383 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 348 B |
|
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 383 B |
|
Before Width: | Height: | Size: 388 B After Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 786 B After Width: | Height: | Size: 786 B |
|
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 389 B |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |