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