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