Fixed tests after #431: Hotfix php7 syntax error

main
Igor Scheller 6 years ago
parent de0ac90675
commit 46e7fc89b4

1
.gitignore vendored

@ -22,6 +22,7 @@ _vimrc_local.vim
/config/config.php /config/config.php
/test/coverage /test/coverage
/public/coverage /public/coverage
/coverage
# Composer files # Composer files
/vendor/ /vendor/

@ -76,7 +76,7 @@ class Handler
protected function terminateApplicationImmediately($message = '') protected function terminateApplicationImmediately($message = '')
{ {
echo $message; echo $message;
die(); die(1);
} }
/** /**

@ -61,10 +61,10 @@ class HandlerTest extends TestCase
/** @var Handler|Mock $handler */ /** @var Handler|Mock $handler */
$handler = $this->getMockBuilder(Handler::class) $handler = $this->getMockBuilder(Handler::class)
->setMethods(['die']) ->setMethods(['terminateApplicationImmediately'])
->getMock(); ->getMock();
$handler->expects($this->once()) $handler->expects($this->once())
->method('die'); ->method('terminateApplicationImmediately');
$handler->setHandler(Handler::ENV_PRODUCTION, $handlerMock); $handler->setHandler(Handler::ENV_PRODUCTION, $handlerMock);

Loading…
Cancel
Save