summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);