@@ 112-125 (lines=14) @@ | ||
109 | /** |
|
110 | * |
|
111 | */ |
|
112 | public function testLoadFilesNoCacheNoFile() |
|
113 | { |
|
114 | $this->setExpectedException(RouterException::class); |
|
115 | ||
116 | $this->router->expects($this->any()) |
|
117 | ->method('isCached') |
|
118 | ->willReturn(false); |
|
119 | ||
120 | $this->router->expects($this->any()) |
|
121 | ->method('mergeCollection') |
|
122 | ->willReturn($this->router); |
|
123 | ||
124 | $this->loader->loadFiles([$this->file, __DIR__ . '/RouteFileNone.php']); |
|
125 | } |
|
126 | ||
127 | /** |
|
128 | * |
|
@@ 130-144 (lines=15) @@ | ||
127 | /** |
|
128 | * |
|
129 | */ |
|
130 | public function testLoadFilesNoCache() |
|
131 | { |
|
132 | $this->router->expects($this->any()) |
|
133 | ->method('isCached') |
|
134 | ->willReturn(false); |
|
135 | ||
136 | $this->router->expects($this->any()) |
|
137 | ->method('mergeCollection') |
|
138 | ->willReturn($this->router); |
|
139 | ||
140 | $this->loader->loadFiles([ |
|
141 | $this->file, |
|
142 | __DIR__ . '/Files/FileLoaderRoutesAlt.php' |
|
143 | ]); |
|
144 | } |
|
145 | ||
146 | /** |
|
147 | * |
@@ 111-125 (lines=15) @@ | ||
108 | /** |
|
109 | * |
|
110 | */ |
|
111 | public function testLoadFilesNoCache() |
|
112 | { |
|
113 | $this->router->expects($this->any()) |
|
114 | ->method('isCached') |
|
115 | ->willReturn(false); |
|
116 | ||
117 | $this->router->expects($this->any()) |
|
118 | ->method('mergeCollection') |
|
119 | ->willReturn($this->router); |
|
120 | ||
121 | $this->loader->loadFiles([ |
|
122 | $this->file, |
|
123 | __DIR__ . '/Files/FileLoaderRoutesAlt.yml' |
|
124 | ]); |
|
125 | } |
|
126 | } |
|
127 |