| @@ 50-77 (lines=28) @@ | ||
| 47 | /** |
|
| 48 | * @test |
|
| 49 | */ |
|
| 50 | public function itCanBeFullyConfiguredViaYml() |
|
| 51 | { |
|
| 52 | $expectedConfiguration = [ |
|
| 53 | 'cache_warmer' => false, |
|
| 54 | 'doctrine_support' => true, |
|
| 55 | 'options' => [ |
|
| 56 | 'debug' => false, |
|
| 57 | 'features' => 7, |
|
| 58 | 'app_dir' => '/my/app/dir', |
|
| 59 | 'cache_dir' => '/my/cache/dir', |
|
| 60 | 'include_paths' => [ |
|
| 61 | '/path/to/include', |
|
| 62 | '/other/path/to/include', |
|
| 63 | ], |
|
| 64 | 'exclude_paths' => [ |
|
| 65 | '/path/to/exclude', |
|
| 66 | '/other/path/to/exclude', |
|
| 67 | ], |
|
| 68 | 'container_class' => 'Container\Class' |
|
| 69 | ] |
|
| 70 | ]; |
|
| 71 | ||
| 72 | $sources = [ |
|
| 73 | __DIR__.'/../Fixtures/config/full.yml' |
|
| 74 | ]; |
|
| 75 | ||
| 76 | $this->assertProcessedConfigurationEquals($expectedConfiguration, $sources); |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @test |
|
| @@ 82-109 (lines=28) @@ | ||
| 79 | /** |
|
| 80 | * @test |
|
| 81 | */ |
|
| 82 | public function itCanBeFullyConfiguredViaXml() |
|
| 83 | { |
|
| 84 | $expectedConfiguration = [ |
|
| 85 | 'cache_warmer' => false, |
|
| 86 | 'doctrine_support' => true, |
|
| 87 | 'options' => [ |
|
| 88 | 'debug' => false, |
|
| 89 | 'features' => 7, |
|
| 90 | 'app_dir' => '/my/app/dir', |
|
| 91 | 'cache_dir' => '/my/cache/dir', |
|
| 92 | 'include_paths' => [ |
|
| 93 | '/path/to/include', |
|
| 94 | '/other/path/to/include', |
|
| 95 | ], |
|
| 96 | 'exclude_paths' => [ |
|
| 97 | '/path/to/exclude', |
|
| 98 | '/other/path/to/exclude', |
|
| 99 | ], |
|
| 100 | 'container_class' => 'Container\Class' |
|
| 101 | ] |
|
| 102 | ]; |
|
| 103 | ||
| 104 | $sources = [ |
|
| 105 | __DIR__.'/../Fixtures/config/full.xml' |
|
| 106 | ]; |
|
| 107 | ||
| 108 | $this->assertProcessedConfigurationEquals($expectedConfiguration, $sources); |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * {@inheritdoc} |
|