| @@ 114-127 (lines=14) @@ | ||
| 111 | return new Configuration(true); |
|
| 112 | } |
|
| 113 | ||
| 114 | public function testEmptyConfiguration(): void |
|
| 115 | { |
|
| 116 | $formats = array_map(function ($path) { |
|
| 117 | return __DIR__.'/../../Resources/Fixtures/'.$path; |
|
| 118 | }, [ |
|
| 119 | 'config/empty.yml', |
|
| 120 | 'config/empty.xml', |
|
| 121 | 'config/empty.php', |
|
| 122 | ]); |
|
| 123 | ||
| 124 | foreach ($formats as $format) { |
|
| 125 | $this->assertProcessedConfigurationEquals($this->emptyConfig, [$format]); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | ||
| 129 | public function testSupportsAllConfigFormats(): void |
|
| 130 | { |
|
| @@ 374-386 (lines=13) @@ | ||
| 371 | /** |
|
| 372 | * @group legacy |
|
| 373 | */ |
|
| 374 | public function testBackwardCompatibility(): void |
|
| 375 | { |
|
| 376 | $formats = array_map(function ($path) { |
|
| 377 | return __DIR__.'/../../Resources/Fixtures/'.$path; |
|
| 378 | }, [ |
|
| 379 | 'config/bc/toolbar.yml', |
|
| 380 | 'config/bc/toolbar_auto.yml', |
|
| 381 | ]); |
|
| 382 | ||
| 383 | foreach ($formats as $format) { |
|
| 384 | $this->assertProcessedConfigurationEquals($this->emptyConfig, [$format]); |
|
| 385 | } |
|
| 386 | } |
|
| 387 | ||
| 388 | /** |
|
| 389 | * @group legacy |
|