Skip to content

Commit 61de566

Browse files
committed
Drop PHP 5.4, 5.5 and HHVM support. Also, PHPUnit 5
1 parent 754810d commit 61de566

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

.travis.yml

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

3+
sudo: false
4+
5+
notifications:
6+
email:
7+
on_success: never
8+
39
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
710
- 7.0
811
- 7.1
9-
- hhvm
12+
- nightly
1013

1114
matrix:
15+
fast_finish: true
16+
allow_failures:
17+
- php: nightly
1218
include:
13-
- php: 5.4
19+
- php: 7.0
1420
env: dependencies=lowest
1521

1622
before_script:
17-
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then composer require satooshi/php-coveralls:dev-master -n ; fi
18-
- if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then composer install -n ; fi
23+
- if [[ $(phpenv version-name) == '7.1' ]]; then composer require satooshi/php-coveralls:dev-master -n ; fi
24+
- if [[ $(phpenv version-name) != '7.1' ]]; then composer install -n ; fi
1925
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable -n; fi;
2026

2127
script:
22-
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
23-
- if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then vendor/bin/phpunit ; fi
28+
- if [[ $(phpenv version-name) == '7.1' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
29+
- if [[ $(phpenv version-name) != '7.1' ]]; then vendor/bin/phpunit ; fi
2430

2531
after_script:
26-
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then php vendor/bin/coveralls -v ; fi
32+
- if [[ $(phpenv version-name) == '7.1' ]]; then php vendor/bin/coveralls -v ; fi

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
}
1717
},
1818
"require": {
19-
"php": "~5.4|~7.0",
20-
"phpunit/phpunit-mock-objects": "~2.0|~3.0|~4.0"
19+
"php": "~7.0",
20+
"phpunit/phpunit-mock-objects": "~4.0"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "~4.8.35|~5.7|~6.4"
23+
"phpunit/phpunit": "~6.4"
2424
}
2525
}

tests/EasyMockTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function should_allow_to_spy_method_calls()
128128
));
129129

130130
// Test PHPUnit's internals to check that the spy was registered
131-
$property = new \ReflectionProperty(TestCase::class, 'mockObjects');
131+
$property = new \ReflectionProperty('PHPUnit\Framework\TestCase', 'mockObjects');
132132
$property->setAccessible(true);
133133
$mockObjects = $property->getValue($this);
134134

0 commit comments

Comments
 (0)