Skip to content

Commit 419ac90

Browse files
PHP 7.4 and 8.0 support
1 parent b3ecadf commit 419ac90

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

.travis.yml

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

3-
sudo: false
4-
53
cache:
64
directories:
75
- $HOME/.composer/cache/files
86

9-
php:
10-
- 7.1
11-
- 7.2
12-
- 7.3
13-
147
env:
158
global:
169
- TEST_COMMAND="composer test"
@@ -23,12 +16,23 @@ branches:
2316
matrix:
2417
fast_finish: true
2518
include:
26-
- name: PHPSpec
19+
- name: PHPSpec 7.1
20+
php: 7.1
21+
- name: PHPSpec 7.2
22+
php: 7.2
23+
- name: PHPSpec 7.3
24+
php: 7.3
25+
- name: PHPSpec 7.4
26+
php: 7.4
27+
- name: PHPSpec 8.0
28+
php: nightly
29+
env: COMPOSER_FLAGS="--prefer-stable --ignore-platform-reqs" DEPENDENCIES="phpdocumentor/reflection-docblock:^5.2@dev"
30+
- name: PHPSpec lowest
2731
php: 7.1
28-
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" TEST_COMMAND="composer test" PULI_VERSION=1.0.0-beta9
32+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" PULI_VERSION=1.0.0-beta9
2933
- name: PHPSpec code coverage
3034
php: 7.2
31-
env: COVERAGE=true TEST_COMMAND="composer test-ci" PULI_VERSION=1.0.0-beta10 DEPENDENCIES="friends-of-phpspec/phpspec-code-coverage:^4.3"
35+
env: COVERAGE=true TEST_COMMAND="composer test-ci" DEPENDENCIES="friends-of-phpspec/phpspec-code-coverage:^4.3 phpspec/phpspec:^5.1"
3236
- name: PHPUnit tests
3337
php: 7.3
3438
env: TEST_COMMAND="./vendor/bin/phpunit" DEPENDENCIES="phpunit/phpunit:^7.5 nyholm/psr7:^1.0 kriswallsmith/buzz:^1.0 php-http/curl-client:^1.0 php-http/message"

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.1"
14+
"php": "^7.1 || ^8.0"
1515
},
1616
"require-dev": {
17+
"graham-campbell/phpspec-skip-example-extension": "^5.0",
1718
"php-http/httplug": "^1.0 || ^2.0",
1819
"php-http/message-factory": "^1.0",
19-
"puli/composer-plugin": "1.0.0-beta10",
20-
"phpspec/phpspec": "^5.1",
21-
"akeneo/phpspec-skip-example-extension": "^4.0"
20+
"phpspec/phpspec": "^5.1 || ^6.1",
21+
"puli/composer-plugin": "1.0.0-beta10"
2222
},
2323
"suggest": {
2424
"puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.",

spec/Strategy/PuliSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use PhpSpec\ObjectBehavior;
1313

1414
/**
15-
* @require \NotPHP73
15+
* @require \PuliIsSupported
1616
*/
1717
class PuliSpec extends ObjectBehavior
1818
{

spec/autoload.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
]);
99
}
1010

11-
if (PHP_VERSION_ID >= 70300 && PHP_VERSION_ID < 70400) {
12-
class PHP73 {}
13-
} else {
14-
class NotPHP73 {}
11+
if (PHP_VERSION_ID < 70300) {
12+
class PuliIsSupported {}
1513
}

0 commit comments

Comments
 (0)