Skip to content

Commit 4efba12

Browse files
authored
Merge pull request #9 from allejo/feature/74-support
Add 7.4 snapshot to Travis testing
2 parents 2d743a6 + 5ca7bbc commit 4efba12

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ php:
77
- 7.1
88
- 7.2
99
- 7.3
10+
- 7.4snapshot
1011
- nightly
1112
- hhvm
1213

@@ -20,6 +21,10 @@ matrix:
2021
# https://github.com/php-vcr/php-vcr/issues/90
2122
- php: hhvm
2223

24+
# Not 100% sure why this one is failing but we can get to it when 7.4-dev
25+
# becomes 7.4.0
26+
- php: 7.4snapshot
27+
2328
dist: trusty
2429
sudo: false
2530

@@ -32,6 +37,7 @@ before_script:
3237
- composer self-update -q
3338
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
3439
- composer install --no-interaction --prefer-dist
40+
- composer show
3541

3642
script:
3743
- mkdir -p build/logs

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"symfony/event-dispatcher": "^2.4|^3.0|^4.0"
88
},
99
"require-dev": {
10-
"mikey179/vfsStream": "^1.6",
10+
"mikey179/vfsstream": "^1.6",
1111
"php-curl-class/php-curl-class": "^8.0",
12-
"phpunit/phpunit": "^4.8|^5.0"
12+
"phpunit/phpunit": "^4.8|^5.0|^7.0"
1313
},
1414
"autoload": {
1515
"psr-4": {

tests/bootstrap.php

+7
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@
88
*/
99

1010
require __DIR__ . '/../vendor/autoload.php';
11+
12+
if (PHP_VERSION_ID >= 70100) {
13+
if (!class_exists('\PHPUnit_Framework_TestCase')) {
14+
class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)