Skip to content

Commit 07fceef

Browse files
authored
Merge pull request #101 from Moskito89/feature/allow-php-8
PHP 8 || Updated composer.json and PHPUnit
2 parents 89b57f2 + c3ea733 commit 07fceef

File tree

5 files changed

+17
-29
lines changed

5 files changed

+17
-29
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/composer.lock
22
/vendor
33
.idea/
4+
.phpunit.result.cache

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^5.6|^7.0"
21+
"php": ">=5.6"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "^5.7"
24+
"phpunit/phpunit": "^9.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

phpunit.xml.dist

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
<phpunit bootstrap="tests/bootstrap.php">
2-
<testsuite>
3-
<directory suffix="Test.php">tests</directory>
4-
</testsuite>
5-
<filter>
6-
<whitelist processUncoveredFilesFromWhitelist="true">
7-
<directory suffix=".php">src</directory>
8-
</whitelist>
9-
</filter>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">tests/</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="Tests">
10+
<directory>tests</directory>
11+
</testsuite>
12+
</testsuites>
1013
</phpunit>

tests/QrReaderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
namespace Khanamiryan\QrCodeTests;
44

5+
use PHPUnit\Framework\TestCase;
56
use Zxing\QrReader;
67

7-
class QrReaderTest extends \PHPUnit\Framework\TestCase
8+
class QrReaderTest extends TestCase
89
{
910

1011
public function testText1()

tests/QrReaderTest.php~

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)