Code Duplication    Length = 14-15 lines in 2 locations

Tests/DependencyInjection/Factory/Resolver/AwsS3ResolverFactoryTest.php 2 locations

@@ 360-373 (lines=14) @@
357
     * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
358
     * @expectedExceptionMessage The child node "client_config" at path "aws_s3" must be configured.
359
     */
360
    public function testThrowClientConfigNotSetOnAddConfiguration()
361
    {
362
        $treeBuilder = new TreeBuilder();
363
        $rootNode = $treeBuilder->root('aws_s3', 'array');
364
365
        $resolver = new AwsS3ResolverFactory();
366
        $resolver->addConfiguration($rootNode);
367
368
        $this->processConfigTree($treeBuilder, array(
369
            'aws_s3' => array(
370
                'bucket' => 'aBucket',
371
            ),
372
        ));
373
    }
374
375
    /**
376
     * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
@@ 379-393 (lines=15) @@
376
     * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
377
     * @expectedExceptionMessage Invalid type for path "aws_s3.client_config". Expected array, but got string
378
     */
379
    public function testThrowClientConfigNotArrayOnAddConfiguration()
380
    {
381
        $treeBuilder = new TreeBuilder();
382
        $rootNode = $treeBuilder->root('aws_s3', 'array');
383
384
        $resolver = new AwsS3ResolverFactory();
385
        $resolver->addConfiguration($rootNode);
386
387
        $this->processConfigTree($treeBuilder, array(
388
            'aws_s3' => array(
389
                'bucket' => 'aBucket',
390
                'client_config' => 'not_array',
391
            ),
392
        ));
393
    }
394
395
    public function testProcessCorrectlyOptionsOnAddConfiguration()
396
    {