Skip to content

Commit b990c75

Browse files
committed
Broaden support for php back to 7.0, downgrade phpunit
1 parent 11950ca commit b990c75

File tree

4 files changed

+33
-4
lines changed

4 files changed

+33
-4
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
vendor/
2-
composer.lock
2+
composer*.lock
33
composer.phar
44
.DS_Store
55
.idea/

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
language: php
22
dist: xenial
33
php:
4+
- 7.0
5+
- 7.1
6+
- 7.2
47
- 7.3
58
- 7.4
69

710
before_script:
11+
- if (( "$TRAVIS_PHP_VERSION" >= 7.4 )); then export COMPOSER="./composer-7-4.json"; fi
812
- composer install
913

10-
script: phpunit --verbose
14+
script: php ./vendor/bin/phpunit --verbose

composer-7-4.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "messagebird/php-rest-api",
3+
"description": "MessageBird REST API client for PHP",
4+
"type": "library",
5+
"homepage": "https://github.com/messagebird/php-rest-api",
6+
"license": "BSD-2-Clause",
7+
"authors": [
8+
{
9+
"name": "MessageBird",
10+
"email": "[email protected]"
11+
}
12+
],
13+
"require": {
14+
"php": ">=7.4",
15+
"ext-curl": "*"
16+
},
17+
"require-dev": {
18+
"phpunit/phpunit": "^8"
19+
},
20+
"autoload": {
21+
"psr-4": {
22+
"MessageBird\\": "src/MessageBird/"
23+
}
24+
}
25+
}

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=7.2.0",
14+
"php": ">=7.0",
1515
"ext-curl": "*"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^8"
18+
"phpunit/phpunit": "^6"
1919
},
2020
"autoload": {
2121
"psr-4": {

0 commit comments

Comments
 (0)