Skip to content

Commit be6ce99

Browse files
Merge pull request #9 from richan-fongdasen/laravel-5.8
Add support for Laravel 5.8
2 parents 14a2b8f + d9eb0bf commit be6ce99

13 files changed

+50
-29
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ Vagrantfile
1919
*.log
2020

2121

22+
# Code Editor / IDE generated files
23+
# ----------------------------------------------------------------------- #
24+
25+
.idea
26+
*.sublime-project
27+
*.sublime-workspace
28+
29+
2230
# Composer & Vendor Files
2331
# ----------------------------------------------------------------------- #
2432

.travis.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,22 @@ dist: trusty
55
matrix:
66
fast_finish: true
77
include:
8-
- php: 5.5.9
9-
env: LARAVEL=5.1.* ORCHESTRA=3.1.*
10-
- php: 5.5.9
11-
env: LARAVEL=5.2.* ORCHESTRA=3.2.*
12-
- php: 5.6
13-
env: LARAVEL=5.3.* ORCHESTRA=3.3.*
14-
- php: 5.6
15-
env: LARAVEL=5.4.* ORCHESTRA=3.4.*
16-
- php: 7.0
17-
env: LARAVEL=5.5.* ORCHESTRA=3.5.* COVERAGE=1
8+
- php: 7.1
9+
env: LARAVEL=5.5.* ORCHESTRA=3.5.*
1810
- php: 7.1
1911
env: LARAVEL=5.6.* ORCHESTRA=3.6.*
2012
- php: 7.2
2113
env: LARAVEL=5.7.* ORCHESTRA=3.7.*
14+
- php: 7.2
15+
env: LARAVEL=5.8.* ORCHESTRA=3.8.* COVERAGE=1
16+
- php: 7.3
17+
env: LARAVEL=5.8.* ORCHESTRA=3.8.*
2218

2319
allow_failures:
2420
- env: COVERAGE=1
2521

2622
before_install:
27-
- if [[ $TRAVIS_PHP_VERSION != 7.0 ]] ; then phpenv config-rm xdebug.ini; fi
23+
- phpenv config-rm xdebug.ini
2824
- travis_retry composer self-update
2925

3026
before_script:

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
"source": "https://github.com/richan-fongdasen/laravel-varnishable"
2222
},
2323
"require": {
24-
"php": "^5.5.9 || ^7.0 || ^7.1.3",
24+
"php": "^7.1.3",
2525
"guzzlehttp/guzzle": "~6.0",
26-
"illuminate/database": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*",
27-
"illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*"
26+
"illuminate/database": "5.5.*|5.6.*|5.7.*|5.8.*",
27+
"illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*"
2828
},
2929
"require-dev": {
30-
"mockery/mockery": "~0.9.8",
31-
"orchestra/database": "~3.1",
32-
"orchestra/testbench": "~3.1",
33-
"phpunit/phpunit": "~7.0 || ~6.0 || ~5.2 || ~4.8"
30+
"mockery/mockery": "~1.0",
31+
"orchestra/database": "~3.5",
32+
"orchestra/testbench": "~3.5",
33+
"phpunit/phpunit": "^8.0 || ~7.0 || ~6.0"
3434
},
3535
"config": {
3636
"sort-packages": true

phpunit.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
convertNoticesToExceptions="true"
99
convertWarningsToExceptions="true"
1010
processIsolation="false"
11-
stopOnFailure="true"
12-
syntaxCheck="false">
11+
stopOnFailure="true">
1312
<testsuites>
1413
<testsuite name="Laravel Varnishable Test Suite">
1514
<directory suffix="Tests.php">./tests/</directory>

tests/Concerns/InvalidateVarnishCacheTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ class InvalidateVarnishCacheTests extends TestCase
2424

2525
/**
2626
* Setup the test environment
27+
*
28+
* @return void
2729
*/
28-
public function setUp()
30+
public function setUp() :void
2931
{
3032
parent::setUp();
3133

tests/Concerns/ManageEtagHeaderTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ class ManageEtagHeaderTests extends TestCase
2424

2525
/**
2626
* Setup the test environment
27+
*
28+
* @return void
2729
*/
28-
public function setUp()
30+
public function setUp() :void
2931
{
3032
parent::setUp();
3133

tests/Concerns/ManageLastModifiedHeaderTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ class ManageLastModifiedHeaderTests extends TestCase
2525

2626
/**
2727
* Setup the test environment
28+
*
29+
* @return void
2830
*/
29-
public function setUp()
31+
public function setUp() :void
3032
{
3133
parent::setUp();
3234

tests/Concerns/ManipulateHttpResponseTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ class ManipulateHttpResponseTests extends TestCase
3232

3333
/**
3434
* Setup the test environment
35+
*
36+
* @return void
3537
*/
36-
public function setUp()
38+
public function setUp() :void
3739
{
3840
parent::setUp();
3941

tests/Middleware/CacheableByVarnishTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ class CacheableByVarnishTests extends TestCase
1818

1919
/**
2020
* Setup the test environment
21+
*
22+
* @return void
2123
*/
22-
public function setUp()
24+
public function setUp() :void
2325
{
2426
parent::setUp();
2527

tests/Middleware/UncacheableByVarnishTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ class UncacheableByVarnishTests extends TestCase
1818

1919
/**
2020
* Setup the test environment
21+
*
22+
* @return void
2123
*/
22-
public function setUp()
24+
public function setUp() :void
2325
{
2426
parent::setUp();
2527

tests/TestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,10 @@ protected function prepareException($exception)
140140

141141
/**
142142
* Setup the test environment
143+
*
144+
* @return void
143145
*/
144-
public function setUp()
146+
public function setUp() :void
145147
{
146148
parent::setUp();
147149

tests/VarnishableObserverTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class VarnishableObserverTests extends TestCase
1010
{
1111
/**
1212
* Setup the test environment
13+
*
14+
* @return void
1315
*/
14-
public function setUp()
16+
public function setUp() :void
1517
{
1618
parent::setUp();
1719

tests/VarnishableServiceTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ class VarnishableServiceTests extends TestCase
1616

1717
/**
1818
* Setup the test environment
19+
*
20+
* @return void
1921
*/
20-
public function setUp()
22+
public function setUp() :void
2123
{
2224
parent::setUp();
2325

0 commit comments

Comments
 (0)