diff --git a/.gitignore b/.gitignore index f567539..716b1f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /composer.lock /vendor .idea/ +.phpunit.result.cache diff --git a/composer.json b/composer.json index 4e75736..9187ebd 100644 --- a/composer.json +++ b/composer.json @@ -18,10 +18,10 @@ } ], "require": { - "php": "^5.6|^7.0" + "php": ">=5.6" }, "require-dev": { - "phpunit/phpunit": "^5.7" + "phpunit/phpunit": "^9.0" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7c557c8..f34ef35 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,13 @@ - - - tests - - - - src - - + + + + + tests/ + + + + + tests + + diff --git a/tests/QrReaderTest.php b/tests/QrReaderTest.php index 10d2ff3..b4c1367 100644 --- a/tests/QrReaderTest.php +++ b/tests/QrReaderTest.php @@ -2,9 +2,10 @@ namespace Khanamiryan\QrCodeTests; +use PHPUnit\Framework\TestCase; use Zxing\QrReader; -class QrReaderTest extends \PHPUnit\Framework\TestCase +class QrReaderTest extends TestCase { public function testText1() diff --git a/tests/QrReaderTest.php~ b/tests/QrReaderTest.php~ deleted file mode 100644 index c5ac9c2..0000000 --- a/tests/QrReaderTest.php~ +++ /dev/null @@ -1,17 +0,0 @@ -assertSame("Hello world!", $qrcode->text()); - } -}