summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-08-05 10:59:39 +0200
committerGitHub <noreply@github.com>2018-08-05 10:59:39 +0200
commit9ca36bed3446cdd4060d7d6fa1025512d0922e0e (patch)
treeaf7c91b275f5fa94128f58f31062fb3cf68f87a4
parentde0ac90675718552efc122115495cd5df6b86ccf (diff)
parent46e7fc89b469a774fa26a89b5124306fa0ea258e (diff)
Merge pull request #442 from MyIgel/tests-fix-for-hotfix-431
Fixes tests after #431 (Hotfix php7 syntax error)
-rw-r--r--.gitignore1
-rw-r--r--src/Exceptions/Handler.php2
-rw-r--r--tests/Unit/Exceptions/HandlerTest.php4
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);