| @@ 87-100 (lines=14) @@ | ||
| 84 | return new Configuration(true); |
|
| 85 | } |
|
| 86 | ||
| 87 | public function testEmptyConfiguration() |
|
| 88 | { |
|
| 89 | $formats = array_map(function ($path) { |
|
| 90 | return __DIR__.'/../../Resources/Fixtures/'.$path; |
|
| 91 | }, [ |
|
| 92 | 'config/empty.yml', |
|
| 93 | 'config/empty.xml', |
|
| 94 | 'config/empty.php', |
|
| 95 | ]); |
|
| 96 | ||
| 97 | foreach ($formats as $format) { |
|
| 98 | $this->assertProcessedConfigurationEquals($this->emptyConfig, [$format]); |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| 102 | public function testSupportsAllConfigFormats() |
|
| 103 | { |
|
| @@ 319-331 (lines=13) @@ | ||
| 316 | /** |
|
| 317 | * @group legacy |
|
| 318 | */ |
|
| 319 | public function testBackwardCompatibility() |
|
| 320 | { |
|
| 321 | $formats = array_map(function ($path) { |
|
| 322 | return __DIR__.'/../../Resources/Fixtures/'.$path; |
|
| 323 | }, [ |
|
| 324 | 'config/bc/toolbar.yml', |
|
| 325 | 'config/bc/toolbar_auto.yml', |
|
| 326 | ]); |
|
| 327 | ||
| 328 | foreach ($formats as $format) { |
|
| 329 | $this->assertProcessedConfigurationEquals($this->emptyConfig, [$format]); |
|
| 330 | } |
|
| 331 | } |
|
| 332 | ||
| 333 | /** |
|
| 334 | * @group legacy |
|