Skip to content

Commit 3573225

Browse files
committed
mockery: updated to @dev version (required for PHP 7.1 features)
1 parent 0827c14 commit 3573225

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"nette/security": "^2.4",
3232
"latte/latte": "^2.4.3",
3333
"tracy/tracy": "^2.4",
34-
"mockery/mockery": "^0.9.5"
34+
"mockery/mockery": "^1.0"
3535
},
3636
"conflict": {
3737
"nette/nette": "<2.2",

tests/Application/Application.run.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $httpResponse->shouldIgnoreMissing();
6262
Assert::exception(function () use ($httpRequest, $httpResponse) {
6363
$presenterFactory = Mockery::mock(IPresenterFactory::class);
6464
$router = Mockery::mock(IRouter::class);
65-
$router->shouldReceive('match');
65+
$router->shouldReceive('match')->andReturn(NULL);
6666

6767
$app = new Application($presenterFactory, $router, $httpRequest, $httpResponse);
6868
$app->run();
@@ -77,7 +77,7 @@ test(function () use ($httpRequest, $httpResponse) {
7777
$presenterFactory->shouldReceive('createPresenter')->with('Error')->andReturn($errorPresenter);
7878

7979
$router = Mockery::mock(IRouter::class);
80-
$router->shouldReceive('match');
80+
$router->shouldReceive('match')->andReturn(NULL);
8181

8282
$app = new Application($presenterFactory, $router, $httpRequest, $httpResponse);
8383
$app->catchExceptions = TRUE;

0 commit comments

Comments
 (0)