diff options
author | msquare <msquare@notrademark.de> | 2018-08-05 10:59:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-05 10:59:39 +0200 |
commit | 9ca36bed3446cdd4060d7d6fa1025512d0922e0e (patch) | |
tree | af7c91b275f5fa94128f58f31062fb3cf68f87a4 | |
parent | de0ac90675718552efc122115495cd5df6b86ccf (diff) | |
parent | 46e7fc89b469a774fa26a89b5124306fa0ea258e (diff) |
Merge pull request #442 from MyIgel/tests-fix-for-hotfix-431
Fixes tests after #431 (Hotfix php7 syntax error)
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/Exceptions/Handler.php | 2 | ||||
-rw-r--r-- | tests/Unit/Exceptions/HandlerTest.php | 4 |
3 files changed, 4 insertions, 3 deletions
@@ -22,6 +22,7 @@ _vimrc_local.vim /config/config.php /test/coverage /public/coverage +/coverage # Composer files /vendor/ diff --git a/src/Exceptions/Handler.php b/src/Exceptions/Handler.php index f737bdd0..6b3300e6 100644 --- a/src/Exceptions/Handler.php +++ b/src/Exceptions/Handler.php @@ -76,7 +76,7 @@ class Handler protected function terminateApplicationImmediately($message = '') { echo $message; - die(); + die(1); } /** diff --git a/tests/Unit/Exceptions/HandlerTest.php b/tests/Unit/Exceptions/HandlerTest.php index 40202be8..5a6ffe16 100644 --- a/tests/Unit/Exceptions/HandlerTest.php +++ b/tests/Unit/Exceptions/HandlerTest.php @@ -61,10 +61,10 @@ class HandlerTest extends TestCase /** @var Handler|Mock $handler */ $handler = $this->getMockBuilder(Handler::class) - ->setMethods(['die']) + ->setMethods(['terminateApplicationImmediately']) ->getMock(); $handler->expects($this->once()) - ->method('die'); + ->method('terminateApplicationImmediately'); $handler->setHandler(Handler::ENV_PRODUCTION, $handlerMock); |