Skip to content

Commit

Permalink
Forward compatibility with PHPUnit 7 and use legacy PHPUnit 5 on HHVM
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Feb 4, 2019
1 parent dbdf527 commit e86f14b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -9,7 +9,7 @@ php:
- 7.1
- 7.2
- 7.3
- hhvm # ignore errors, see below
# - hhvm # requires legacy phpunit & ignore errors, see below

# lock distro so new future defaults will not break the build
dist: trusty
Expand All @@ -18,6 +18,8 @@ matrix:
include:
- php: 5.3
dist: precise
- php: hhvm
install: composer require phpunit/phpunit:^5 --dev --no-interaction
allow_failures:
- php: hhvm

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -7,7 +7,7 @@
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "~4.8.35 || ^5.7 || ^6.4"
"phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35"
},
"suggest": {
"ext-event": "~1.0 for ExtEventLoop",
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml.dist
Expand Up @@ -8,7 +8,6 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="vendor/autoload.php"
>
<testsuites>
Expand Down

0 comments on commit e86f14b

Please sign in to comment.