| @@ 52-65 (lines=14) @@ | ||
| 49 | /**  | 
                                |
| 50 | *  | 
                                |
| 51 | */  | 
                                |
| 52 | public function testGetRouterResponseFromPath()  | 
                                |
| 53 |     { | 
                                |
| 54 | $method = 'GET';  | 
                                |
| 55 | $path = '/mypath';  | 
                                |
| 56 | $actual = 'my-handler';  | 
                                |
| 57 | ||
| 58 | $this->adaptor->expects($this->once())  | 
                                |
| 59 |             ->method('match') | 
                                |
| 60 | ->with($this->collection, $method, $path)  | 
                                |
| 61 | ->willReturn($actual);  | 
                                |
| 62 | ||
| 63 | $expected = $this->router->getRouterResponseFromPath($method, $path);  | 
                                |
| 64 | $this->assertEquals($expected, $actual);  | 
                                |
| 65 | }  | 
                                |
| 66 | ||
| 67 | /**  | 
                                |
| 68 | *  | 
                                |
| @@ 70-85 (lines=16) @@ | ||
| 67 | /**  | 
                                |
| 68 | *  | 
                                |
| 69 | */  | 
                                |
| 70 | public function testGetRouterResponse()  | 
                                |
| 71 |     { | 
                                |
| 72 | $request = $this->getMockBuilder(ServerRequestInterface::class)->getMock();  | 
                                |
| 73 | ||
| 74 | $method = 'GET';  | 
                                |
| 75 | $path = '/path';  | 
                                |
| 76 | $actual = 'my-handler';  | 
                                |
| 77 | ||
| 78 | $this->adaptor->expects($this->once())  | 
                                |
| 79 |             ->method('match') | 
                                |
| 80 | ->with($this->collection, $method, $path)  | 
                                |
| 81 | ->willReturn($actual);  | 
                                |
| 82 | ||
| 83 | $expected = $this->router->getRouterResponse($request);  | 
                                |
| 84 | $this->assertEquals($expected, $actual);  | 
                                |
| 85 | }  | 
                                |
| 86 | ||
| 87 | ||
| 88 | /**  | 
                                |