From 46e7fc89b469a774fa26a89b5124306fa0ea258e Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 4 Aug 2018 22:01:07 +0200 Subject: Fixed tests after #431: Hotfix php7 syntax error --- .gitignore | 1 + src/Exceptions/Handler.php | 2 +- tests/Unit/Exceptions/HandlerTest.php | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index eb12eae7..87817f37 100644 --- a/.gitignore +++ b/.gitignore @@ -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); -- cgit v1.2.3-70-g09d2