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