Skip to content

Commit 561aaa8

Browse files
authored
Merge pull request reactphp#439 from clue-labs/tests
Run tests on PHP 7.4 and simplify test matrix
2 parents 03c4240 + 40d469f commit 561aaa8

File tree

3 files changed

+26
-30
lines changed

3 files changed

+26
-30
lines changed

.travis.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
language: php
22

3-
php:
4-
# - 5.3 # requires old distro, see below
5-
- 5.4
6-
- 5.5
7-
- 5.6
8-
- 7.0
9-
- 7.1
10-
- 7.2
11-
- hhvm
12-
133
# lock distro so new future defaults will not break the build
144
dist: trusty
155

166
matrix:
177
include:
188
- php: 5.3
199
dist: precise
10+
- php: 5.4
11+
- php: 5.5
12+
- php: 5.6
13+
- php: 7.0
14+
- php: 7.1
15+
- php: 7.2
16+
- php: 7.3
17+
- php: 7.4
18+
- php: hhvm-3.18
2019
allow_failures:
21-
- php: hhvm
20+
- php: hhvm-3.18
2221

2322
install:
2423
- composer install --no-interaction

composer.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@
1010
"require": {
1111
"php": ">=5.3.8",
1212
"react/cache": "^1.0",
13-
"react/dns": "^1.0",
13+
"react/dns": "^1.3",
1414
"react/event-loop": "^1.0",
1515
"react/promise": "^2.1 || ^1.2",
1616
"react/promise-stream": "^1.1.1",
17-
"react/socket": "^1.0",
17+
"react/promise-timer": "^1.6",
18+
"react/socket": "^1.4",
1819
"react/stream": "^1.0"
1920
},
2021
"require-dev": {
21-
"phpunit/phpunit": "^5.7 || ^4.8.35",
2222
"clue/block-react": "^1.1",
23-
"clue/stream-filter": "^1.3"
23+
"clue/stream-filter": "^1.3",
24+
"phpunit/phpunit": "^7.0 || ^6.0 || ^5.7 || ^4.8.35"
25+
},
26+
"config": {
27+
"preferred-install": {
28+
"react/*": "source"
29+
}
2430
}
2531
}

phpunit.xml.dist

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
syntaxCheck="false"
12-
bootstrap="tests/bootstrap.php"
13-
>
3+
<phpunit bootstrap="tests/bootstrap.php" colors="true">
144
<testsuites>
15-
<testsuite name="React Test Suite">
5+
<testsuite name="ReactPHP Test Suite">
166
<directory>./vendor/react/*/tests/</directory>
17-
<!-- temporarily skip broken tests, see https://github.com/reactphp/socket/issues/207 -->
18-
<exclude>./vendor/react/socket/tests/ConnectorTest.php</exclude>
19-
<exclude>./vendor/react/socket/tests/DnsConnectorTest.php</exclude>
7+
<!-- temporarily skip broken tests, see https://github.com/reactphp/dns/pull/164 -->
8+
<exclude>./vendor/react/dns/tests/FunctionalResolverTest.php</exclude>
9+
<exclude>./vendor/react/dns/tests/Query/CoopExecutorTest.php</exclude>
10+
<exclude>./vendor/react/dns/tests/Query/SelectiveTransportExecutorTest.php</exclude>
2011
</testsuite>
2112
</testsuites>
2213

0 commit comments

Comments
 (0)