Merge pull request #442 from MyIgel/tests-fix-for-hotfix-431
Fixes tests after #431 (Hotfix php7 syntax error)
This commit is contained in:
commit
9ca36bed34
|
@ -22,6 +22,7 @@ _vimrc_local.vim
|
|||
/config/config.php
|
||||
/test/coverage
|
||||
/public/coverage
|
||||
/coverage
|
||||
|
||||
# Composer files
|
||||
/vendor/
|
||||
|
|
|
@ -76,7 +76,7 @@ class Handler
|
|||
protected function terminateApplicationImmediately($message = '')
|
||||
{
|
||||
echo $message;
|
||||
die();
|
||||
die(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue