Skip to content

Commit 7df652d

Browse files
committed
Merge commit 'refs/pull/105/head' of github.com:khanamiryan/php-qrcode-detector-decoder
2 parents 7f591ea + 6408c20 commit 7df652d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/QrReaderTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ public function testText1()
1515
$qrcode = new QrReader($image);
1616
$this->assertSame("Hello world!", $qrcode->text());
1717
}
18+
19+
public function testNoText()
20+
{
21+
$image = __DIR__ . "/qrcodes/empty.png";
22+
$qrcode = new QrReader($image);
23+
$this->assertSame(false, $qrcode->text());
24+
}
1825
}

tests/qrcodes/empty.png

1.56 KB
Loading

0 commit comments

Comments
 (0)