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