Skip to content

Commit

Permalink
Add PHP 7.4 and 8.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Mar 5, 2021
1 parent 9089849 commit 5e3d4b1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 30 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea
.php_cs.cache
.phpunit.result.cache
composer.phar
composer.lock
php-cs-fixer.phar
Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
}
],
"require": {
"php": "^7.2",
"art4/json-api-client": "^0.10",
"cache/void-adapter": "^0.4",
"php": "^7.4 || ^8.0",
"art4/json-api-client": "^1.0",
"cache/filesystem-adapter": "^1.1",
"cache/void-adapter": "^1.1",
"guzzlehttp/guzzle": "^6.0",
"youthweb/oauth2-youthweb": "^1.1"
"youthweb/oauth2-youthweb": "^1.2"
},
"require-dev": {
"phpunit/phpunit": "^6.0 || ^7.0"
"phpunit/phpunit": "^9"
},
"autoload": {
"psr-4": {
Expand Down
37 changes: 12 additions & 25 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
stopOnError="false"
stopOnIncomplete="false"
stopOnSkipped="false"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="all">
<directory suffix="Test.php">tests/Integration/</directory>
<directory suffix="Test.php">tests/Unit/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" stopOnError="false" stopOnIncomplete="false" stopOnSkipped="false" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="all">
<directory suffix="Test.php">tests/Integration/</directory>
<directory suffix="Test.php">tests/Unit/</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit 5e3d4b1

Please sign in to comment.