Code Duplication    Length = 3-3 lines in 2 locations

Tests/DependencyInjection/AbstractDoctrineExtensionTest.php 2 locations

@@ 841-843 (lines=3) @@
838
        $container = $this->loadContainer('orm_entity_listener_resolver', array('YamlBundle'), new EntityListenerPass());
839
840
        $definition = $container->getDefinition('doctrine.orm.em1_configuration');
841
        if (version_compare(Version::VERSION, "2.4.0-DEV") >= 0) {
842
            $this->assertDICDefinitionMethodCallOnce($definition, 'setEntityListenerResolver', array(new Reference('doctrine.orm.em1_entity_listener_resolver')));
843
        }
844
845
        $definition = $container->getDefinition('doctrine.orm.em2_configuration');
846
        if (version_compare(Version::VERSION, "2.4.0-DEV") >= 0) {
@@ 846-848 (lines=3) @@
843
        }
844
845
        $definition = $container->getDefinition('doctrine.orm.em2_configuration');
846
        if (version_compare(Version::VERSION, "2.4.0-DEV") >= 0) {
847
            $this->assertDICDefinitionMethodCallOnce($definition, 'setEntityListenerResolver', array(new Reference('doctrine.orm.em2_entity_listener_resolver')));
848
        }
849
850
        $listener = $container->getDefinition('doctrine.orm.em1_entity_listener_resolver');
851
        $this->assertDICDefinitionMethodCallOnce($listener, 'register', array(new Reference('entity_listener1')));