@@ -7,10 +7,10 @@ use Nette\Application\ApplicationException;
77use Nette \Application \BadRequestException ;
88use Nette \Application \IPresenterFactory ;
99use Nette \Application \IResponse ;
10- use Nette \Application \IRouter ;
1110use Nette \Application \Request ;
1211use Nette \Application \Responses \ForwardResponse ;
1312use Nette \Application \Responses \TextResponse ;
13+ use Nette \Routing \Router ;
1414use Tester \Assert ;
1515
1616
@@ -79,7 +79,7 @@ $httpResponse->shouldIgnoreMissing();
7979// no route without error presenter
8080Assert::exception (function () use ($ httpRequest , $ httpResponse ) {
8181 $ presenterFactory = Mockery::mock (IPresenterFactory::class);
82- $ router = Mockery::mock (IRouter ::class);
82+ $ router = Mockery::mock (Router ::class);
8383 $ router ->shouldReceive ('match ' )->andReturn (null );
8484
8585 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
@@ -94,7 +94,7 @@ test(function () use ($httpRequest, $httpResponse) {
9494 $ presenterFactory = Mockery::mock (IPresenterFactory::class);
9595 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Error ' )->andReturn ($ errorPresenter );
9696
97- $ router = Mockery::mock (IRouter ::class);
97+ $ router = Mockery::mock (Router ::class);
9898 $ router ->shouldReceive ('match ' )->andReturn (null );
9999
100100 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
@@ -120,7 +120,7 @@ test(function () use ($httpRequest, $httpResponse) {
120120 $ presenterFactory = Mockery::mock (IPresenterFactory::class);
121121 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Error ' )->andReturn ($ errorPresenter );
122122
123- $ router = Mockery::mock (IRouter ::class);
123+ $ router = Mockery::mock (Router ::class);
124124 $ router ->shouldReceive ('match ' )->andReturn (['presenter ' => 'Error ' ]);
125125
126126 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
@@ -146,7 +146,7 @@ Assert::exception(function () use ($httpRequest, $httpResponse) {
146146 $ presenterFactory = Mockery::mock (IPresenterFactory::class);
147147 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Missing ' )->andThrow (Nette \Application \InvalidPresenterException::class);
148148
149- $ router = Mockery::mock (IRouter ::class);
149+ $ router = Mockery::mock (Router ::class);
150150 $ router ->shouldReceive ('match ' )->andReturn (['presenter ' => 'Missing ' ]);
151151
152152 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
@@ -162,7 +162,7 @@ test(function () use ($httpRequest, $httpResponse) {
162162 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Missing ' )->andThrow (Nette \Application \InvalidPresenterException::class);
163163 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Error ' )->andReturn ($ errorPresenter );
164164
165- $ router = Mockery::mock (IRouter ::class);
165+ $ router = Mockery::mock (Router ::class);
166166 $ router ->shouldReceive ('match ' )->andReturn (['presenter ' => 'Missing ' ]);
167167
168168 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
@@ -188,7 +188,7 @@ Assert::exception(function () use ($httpRequest, $httpResponse) {
188188 $ presenterFactory = Mockery::mock (IPresenterFactory::class);
189189 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Bad ' )->andReturn (new BadPresenter );
190190
191- $ router = Mockery::mock (IRouter ::class);
191+ $ router = Mockery::mock (Router ::class);
192192 $ router ->shouldReceive ('match ' )->andReturn (['presenter ' => 'Bad ' ]);
193193
194194 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
@@ -204,7 +204,7 @@ test(function () use ($httpRequest, $httpResponse) {
204204 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Bad ' )->andReturn (new BadPresenter );
205205 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Error ' )->andReturn ($ errorPresenter );
206206
207- $ router = Mockery::mock (IRouter ::class);
207+ $ router = Mockery::mock (Router ::class);
208208 $ router ->shouldReceive ('match ' )->andReturn (['presenter ' => 'Bad ' ]);
209209
210210 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
@@ -232,7 +232,7 @@ Assert::noError(function () use ($httpRequest, $httpResponse) {
232232 $ presenterFactory = Mockery::mock (IPresenterFactory::class);
233233 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Good ' )->andReturn ($ presenter );
234234
235- $ router = Mockery::mock (IRouter ::class);
235+ $ router = Mockery::mock (Router ::class);
236236 $ router ->shouldReceive ('match ' )->andReturn (['presenter ' => 'Good ' ]);
237237
238238 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
@@ -256,7 +256,7 @@ Assert::noError(function () use ($httpRequest, $httpResponse) {
256256 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Good ' )->andReturn ($ presenter );
257257 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Error ' )->andReturn ($ errorPresenter );
258258
259- $ router = Mockery::mock (IRouter ::class);
259+ $ router = Mockery::mock (Router ::class);
260260 $ router ->shouldReceive ('match ' )->andReturn (['presenter ' => 'Good ' ]);
261261
262262 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
@@ -281,7 +281,7 @@ Assert::noError(function () use ($httpRequest, $httpResponse) {
281281 $ presenterFactory = Mockery::mock (IPresenterFactory::class);
282282 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Error ' )->andReturn ($ presenter );
283283
284- $ router = Mockery::mock (IRouter ::class);
284+ $ router = Mockery::mock (Router ::class);
285285
286286 $ errors = [];
287287
@@ -315,7 +315,7 @@ Assert::noError(function () use ($httpRequest, $httpResponse) {
315315 $ presenterFactory = Mockery::mock (IPresenterFactory::class);
316316 $ presenterFactory ->shouldReceive ('createPresenter ' )->with ('Infinity ' )->andReturn ($ presenter );
317317
318- $ router = Mockery::mock (IRouter ::class);
318+ $ router = Mockery::mock (Router ::class);
319319 $ router ->shouldReceive ('match ' )->andReturn (['presenter ' => 'Infinity ' ]);
320320
321321 $ app = new Application ($ presenterFactory , $ router , $ httpRequest , $ httpResponse );
0 commit comments