18 lines
324 B
PHP
Raw Normal View History

2023-05-10 13:39:12 +08:00
<?php
namespace Khanamiryan\QrCodeTests;
use Zxing\QrReader;
2024-02-28 16:51:38 +08:00
class QrReaderTest extends \PHPUnit\Framework\TestCase
2023-05-10 13:39:12 +08:00
{
2024-02-28 16:51:38 +08:00
public function testText1()
{
$image = __DIR__ . "/qrcodes/hello_world.png";
2023-05-10 13:39:12 +08:00
2024-02-28 16:51:38 +08:00
$qrcode = new QrReader($image);
$this->assertSame("Hello world!", $qrcode->text());
}
2023-05-10 13:39:12 +08:00
}