Skip to content

Commit efa1a42

Browse files
authored
Merge pull request #8 from gerpo/master
Add support for Laravel 5.8.* and 6.* and PHP 7.3
2 parents e3af1b4 + 29723f1 commit efa1a42

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,32 @@ language: php
33
php:
44
- 7.1
55
- 7.2
6+
- 7.3
67

78
env:
9+
global:
10+
- ILLUMINATE_VERSION=""
11+
- TESTBENCH_VERSION=""
12+
813
matrix:
914
- COMPOSER_FLAGS="--prefer-lowest"
1015
- COMPOSER_FLAGS=""
16+
- ILLUMINATE_VERSION="5.7.*" TESTBENCH_VERSION="3.7.*"
17+
- ILLUMINATE_VERSION="5.8.*" TESTBENCH_VERSION="3.8.*"
18+
- ILLUMINATE_VERSION="6.*" TESTBENCH_VERSION="4.*"
19+
20+
matrix:
21+
exclude:
22+
- php: 7.1
23+
env: ILLUMINATE_VERSION="6.*" TESTBENCH_VERSION="4.*"
1124

1225
before_script:
1326
- travis_retry composer self-update
27+
- if [ "$ILLUMINATE_VERSION" != "" ] && [ "$TESTBENCH_VERSION" != "" ]; then
28+
composer require "illuminate/http:${ILLUMINATE_VERSION}" --no-update;
29+
composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update;
30+
composer require "orchestra/testbench:${TESTBENCH_VERSION}" --no-update;
31+
fi
1432
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
1533

1634
script:

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
],
1818
"require": {
1919
"php": "^7.1",
20-
"illuminate/http": "5.6.*|5.7.*",
21-
"illuminate/support": "5.6.*|5.7.*",
20+
"illuminate/http": "5.6.*|5.7.*|5.8.*|6.*",
21+
"illuminate/support": "5.6.*|5.7.*|5.8.*|6.*",
2222
"intervention/image": "^2.4"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^7.0",
26-
"orchestra/testbench": "3.7.*"
25+
"phpunit/phpunit": "^7.0|^8.0",
26+
"orchestra/testbench": "^3.7|^4.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

tests/FaviconTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class FaviconTest extends \Orchestra\Testbench\TestCase
1010
/** @var Favicon */
1111
protected $favicon;
1212

13-
public function setUp()
13+
public function setUp(): void
1414
{
1515
parent::setUp();
1616

0 commit comments

Comments
 (0)