v1.0 Initial commit of project
This commit is contained in:
24
vendor/khanamiryan/qrcode-detector-decoder/tests/QrReaderTest.php
vendored
Normal file
24
vendor/khanamiryan/qrcode-detector-decoder/tests/QrReaderTest.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Khanamiryan\QrCodeTests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Zxing\QrReader;
|
||||
|
||||
class QrReaderTest extends TestCase
|
||||
{
|
||||
public function testText1()
|
||||
{
|
||||
$image = __DIR__ . "/qrcodes/hello_world.png";
|
||||
|
||||
$qrcode = new QrReader($image);
|
||||
$this->assertSame("Hello world!", $qrcode->text());
|
||||
}
|
||||
|
||||
public function testNoText()
|
||||
{
|
||||
$image = __DIR__ . "/qrcodes/empty.png";
|
||||
$qrcode = new QrReader($image);
|
||||
$this->assertSame(false, $qrcode->text());
|
||||
}
|
||||
}
|
||||
BIN
vendor/khanamiryan/qrcode-detector-decoder/tests/qrcodes/empty.png
vendored
Normal file
BIN
vendor/khanamiryan/qrcode-detector-decoder/tests/qrcodes/empty.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
BIN
vendor/khanamiryan/qrcode-detector-decoder/tests/qrcodes/hello_world.png
vendored
Normal file
BIN
vendor/khanamiryan/qrcode-detector-decoder/tests/qrcodes/hello_world.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
Reference in New Issue
Block a user