Merge pull request #442 from MyIgel/tests-fix-for-hotfix-431

Fixes tests after #431 (Hotfix php7 syntax error)
This commit is contained in:
msquare 2018-08-05 10:59:39 +02:00 committed by GitHub
commit 9ca36bed34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -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/

View File

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

View File

@ -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);