Skip to content

Commit ea50f17

Browse files
authored
Merge pull request #67 from philipp-brosig/master
fixed phpunit test case reference
2 parents a75482d + b4412c0 commit ea50f17

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

tests/QrReaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Zxing\QrReader;
66

7-
class QrReaderTest extends \PHPUnit_Framework_TestCase
7+
class QrReaderTest extends \PHPUnit\Framework\TestCase
88
{
99

1010
public function testText1()

tests/QrReaderTest.php~

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Khanamiryan\QrCodeTests;
4+
5+
use Zxing\QrReader;
6+
7+
class QrReaderTest extends \PHPUnit_Framework_TestCase
8+
{
9+
10+
public function testText1()
11+
{
12+
$image = __DIR__ . "/qrcodes/hello_world.png";
13+
14+
$qrcode = new QrReader($image);
15+
$this->assertSame("Hello world!", $qrcode->text());
16+
}
17+
}

0 commit comments

Comments
 (0)