Code Duplication    Length = 14-15 lines in 2 locations

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

@@ 327-340 (lines=14) @@
324
     * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
325
     * @expectedExceptionMessage The child node "client_config" at path "aws_s3" must be configured.
326
     */
327
    public function testThrowClientConfigNotSetOnAddConfiguration()
328
    {
329
        $treeBuilder = new TreeBuilder();
330
        $rootNode = $treeBuilder->root('aws_s3', 'array');
331
332
        $resolver = new AwsS3ResolverFactory();
333
        $resolver->addConfiguration($rootNode);
334
335
        $this->processConfigTree($treeBuilder, array(
336
            'aws_s3' => array(
337
                'bucket' => 'aBucket',
338
            ),
339
        ));
340
    }
341
342
    /**
343
     * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
@@ 346-360 (lines=15) @@
343
     * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
344
     * @expectedExceptionMessage Invalid type for path "aws_s3.client_config". Expected array, but got string
345
     */
346
    public function testThrowClientConfigNotArrayOnAddConfiguration()
347
    {
348
        $treeBuilder = new TreeBuilder();
349
        $rootNode = $treeBuilder->root('aws_s3', 'array');
350
351
        $resolver = new AwsS3ResolverFactory();
352
        $resolver->addConfiguration($rootNode);
353
354
        $this->processConfigTree($treeBuilder, array(
355
            'aws_s3' => array(
356
                'bucket' => 'aBucket',
357
                'client_config' => 'not_array',
358
            ),
359
        ));
360
    }
361
362
    public function testProcessCorrectlyOptionsOnAddConfiguration()
363
    {