Skip to content

Commit 971af97

Browse files
committed
Test against PHP 7.3 and add forward compatibility with PHPUnit 7
Additionally, use legacy PHPUnit 5 for legacy HHVM on Travis CI as per clue/socket-raw#42
1 parent 3534ecc commit 971af97

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ php:
77
- 5.6
88
- 7.0
99
- 7.1
10-
- hhvm # ignore errors, see below
10+
- 7.2
11+
- 7.3
12+
# - hhvm # requires legacy phpunit & ignore errors, see below
1113

1214
# lock distro so new future defaults will not break the build
1315
dist: trusty
@@ -16,14 +18,16 @@ matrix:
1618
include:
1719
- php: 5.3
1820
dist: precise
21+
- php: hhvm
22+
install: composer require phpunit/phpunit:^5 --dev --no-interaction
1923
allow_failures:
2024
- php: hhvm
2125

2226
sudo: false
2327

2428
install:
2529
- composer install --no-interaction
26-
30+
2731
script:
2832
- vendor/bin/phpunit --coverage-text
2933
- php examples/13-benchmark-throughput.php

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"react/stream": "^1.0 || ^0.7.6"
1111
},
1212
"require-dev": {
13-
"phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35",
13+
"phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35",
1414
"sebastian/environment": "^3.0 || ^2.0 || ^1.0"
1515
},
1616
"autoload": {

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
bootstrap="vendor/autoload.php"
1312
>
1413
<testsuites>

0 commit comments

Comments
 (0)