From af502247a8b769c0e0229a7db95a78c7474fc9a5 Mon Sep 17 00:00:00 2001 From: Zimo Xiao <34933627+zimo-xiao@users.noreply.github.com> Date: Mon, 6 May 2019 19:34:58 +0800 Subject: [PATCH 1/2] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 61d5b99..0256802 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": "^7.1", - "laravel/lumen-framework": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*" + "laravel/lumen-framework": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*" }, "require-dev": { From b3cd519e9ea4305237ece4667bf2d21c37b5d56b Mon Sep 17 00:00:00 2001 From: zimo-xiao Date: Mon, 6 May 2019 19:50:50 +0800 Subject: [PATCH 2/2] add support for lumen 5.8.* --- composer.json | 12 +++++------- src/TestCase.php | 6 +++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 0256802..5769537 100644 --- a/composer.json +++ b/composer.json @@ -3,12 +3,10 @@ "description": "Testing Suite For Lumen like Laravel does.", "keywords": ["phpunit", "test", "lumen", "testing", "laravel", "laravel"], "license": "MIT", - "authors": [ - { - "name": "Albert Chen", - "email": "albert.cht@gmail.com" - } - ], + "authors": [{ + "name": "Albert Chen", + "email": "albert.cht@gmail.com" + }], "require": { "php": "^7.1", "laravel/lumen-framework": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*" @@ -23,4 +21,4 @@ "AlbertCht\\Lumen\\Testing\\": "src/" } } -} +} \ No newline at end of file diff --git a/src/TestCase.php b/src/TestCase.php index e82cdeb..bbb050f 100644 --- a/src/TestCase.php +++ b/src/TestCase.php @@ -14,14 +14,14 @@ abstract class TestCase extends LumenTestCase Concerns\InteractsWithAuthentication, Concerns\MocksApplicationServices; - static protected $appPath; + protected static $appPath; /** * Setup the test environment. * * @return void */ - public function setUp() + public function setUp(): void { parent::setUp(); $this->appendTraits(); @@ -64,4 +64,4 @@ protected function getAppPath() return static::$appPath; } -} +} \ No newline at end of file