Skip to content

Commit

Permalink
Merge pull request #1 from cgauge/php8
Browse files Browse the repository at this point in the history
Upgrade to php 8
  • Loading branch information
alustau authored Dec 22, 2020
2 parents 32d173f + 73a2bda commit c4f9c74
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
9 changes: 2 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
language: php

php:
- 7.2
- 7.3
- 7.4snapshot

matrix:
allow_failures:
- php: 7.4snapshot
- 7.4
- 8.0snapshot

before_script:
- composer selfupdate
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
}
],
"require": {
"php": "^7.2"
"php": ">=7.4"
},
"require-dev": {
"phpunit/phpunit": "^8.0",
"doctrine/coding-standard": "^6.0",
"phpstan/phpstan": "^0.11.8"
"phpunit/phpunit": "^9.5",
"doctrine/coding-standard": "^8.0",
"phpstan/phpstan": "^0.12.64"
},
"autoload": {
"psr-4": {
Expand Down
26 changes: 14 additions & 12 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Unit Tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Unit Tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit c4f9c74

Please sign in to comment.