@@ 214-242 (lines=29) @@ | ||
211 | } |
|
212 | } |
|
213 | ||
214 | public function testSupportsNginx() |
|
215 | { |
|
216 | $expectedConfiguration = $this->getEmptyConfig(); |
|
217 | $expectedConfiguration['proxy_client'] = array( |
|
218 | 'nginx' => array( |
|
219 | 'servers' => array('22.22.22.22'), |
|
220 | 'base_url' => '/test', |
|
221 | 'guzzle_client' => 'acme.guzzle.nginx', |
|
222 | 'purge_location' => '/purge', |
|
223 | ), |
|
224 | ); |
|
225 | $expectedConfiguration['cache_manager']['enabled'] = 'auto'; |
|
226 | $expectedConfiguration['cache_manager']['generate_url_type'] = 'auto'; |
|
227 | $expectedConfiguration['tags']['enabled'] = 'auto'; |
|
228 | $expectedConfiguration['invalidation']['enabled'] = 'auto'; |
|
229 | $expectedConfiguration['user_context']['logout_handler']['enabled'] = 'auto'; |
|
230 | ||
231 | $formats = array_map(function ($path) { |
|
232 | return __DIR__.'/../../Resources/Fixtures/'.$path; |
|
233 | }, array( |
|
234 | 'config/nginx.yml', |
|
235 | 'config/nginx.xml', |
|
236 | 'config/nginx.php', |
|
237 | )); |
|
238 | ||
239 | foreach ($formats as $format) { |
|
240 | $this->assertProcessedConfigurationEquals($expectedConfiguration, array($format)); |
|
241 | } |
|
242 | } |
|
243 | ||
244 | public function testSupportsSymfony() |
|
245 | { |
|
@@ 244-271 (lines=28) @@ | ||
241 | } |
|
242 | } |
|
243 | ||
244 | public function testSupportsSymfony() |
|
245 | { |
|
246 | $expectedConfiguration = $this->getEmptyConfig(); |
|
247 | $expectedConfiguration['proxy_client'] = array( |
|
248 | 'symfony' => array( |
|
249 | 'servers' => array('22.22.22.22'), |
|
250 | 'base_url' => '/test', |
|
251 | 'guzzle_client' => 'acme.guzzle.symfony', |
|
252 | ), |
|
253 | ); |
|
254 | $expectedConfiguration['cache_manager']['enabled'] = 'auto'; |
|
255 | $expectedConfiguration['cache_manager']['generate_url_type'] = 'auto'; |
|
256 | $expectedConfiguration['tags']['enabled'] = 'auto'; |
|
257 | $expectedConfiguration['invalidation']['enabled'] = 'auto'; |
|
258 | $expectedConfiguration['user_context']['logout_handler']['enabled'] = 'auto'; |
|
259 | ||
260 | $formats = array_map(function ($path) { |
|
261 | return __DIR__.'/../../Resources/Fixtures/'.$path; |
|
262 | }, array( |
|
263 | 'config/symfony.yml', |
|
264 | 'config/symfony.xml', |
|
265 | 'config/symfony.php', |
|
266 | )); |
|
267 | ||
268 | foreach ($formats as $format) { |
|
269 | $this->assertProcessedConfigurationEquals($expectedConfiguration, array($format)); |
|
270 | } |
|
271 | } |
|
272 | ||
273 | public function testSplitOptions() |
|
274 | { |