| @@ 59-68 (lines=10) @@ | ||
| 56 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
| 57 | * @expectedExceptionMessage The child node "wrapper" at path "stream" must be configured. |
|
| 58 | */ |
|
| 59 | public function testThrowIfWrapperNotSetOnAddConfiguration() |
|
| 60 | { |
|
| 61 | $treeBuilder = new TreeBuilder(); |
|
| 62 | $rootNode = $treeBuilder->root('stream', 'array'); |
|
| 63 | ||
| 64 | $resolver = new StreamLoaderFactory(); |
|
| 65 | $resolver->addConfiguration($rootNode); |
|
| 66 | ||
| 67 | $this->processConfigTree($treeBuilder, array()); |
|
| 68 | } |
|
| 69 | ||
| 70 | public function testProcessCorrectlyOptionsOnAddConfiguration() |
|
| 71 | { |
|
| @@ 345-354 (lines=10) @@ | ||
| 342 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|
| 343 | * @expectedExceptionMessage The child node "bucket" at path "aws_s3" must be configured. |
|
| 344 | */ |
|
| 345 | public function testThrowBucketNotSetOnAddConfiguration() |
|
| 346 | { |
|
| 347 | $treeBuilder = new TreeBuilder(); |
|
| 348 | $rootNode = $treeBuilder->root('aws_s3', 'array'); |
|
| 349 | ||
| 350 | $resolver = new AwsS3ResolverFactory(); |
|
| 351 | $resolver->addConfiguration($rootNode); |
|
| 352 | ||
| 353 | $this->processConfigTree($treeBuilder, array()); |
|
| 354 | } |
|
| 355 | ||
| 356 | /** |
|
| 357 | * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException |
|