Code Duplication    Length = 11-11 lines in 2 locations

Tests/DependencyInjection/AbstractDoctrineExtensionTest.php 2 locations

@@ 982-992 (lines=11) @@
979
     * @expectedException \InvalidArgumentException
980
     * @expectedExceptionMessage EntityListenerServiceResolver
981
     */
982
    public function testLazyEntityListenerResolverWithoutCorrectInterface()
983
    {
984
        $container = $this->getContainer([]);
985
        $loader    = new DoctrineExtension();
986
        $container->registerExtension($loader);
987
        $container->addCompilerPass(new EntityListenerPass());
988
989
        $this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface');
990
991
        $this->compileContainer($container);
992
    }
993
994
    public function testPrivateLazyEntityListener()
995
    {
@@ 1012-1022 (lines=11) @@
1009
     * @expectedException \InvalidArgumentException
1010
     * @expectedExceptionMessageRegExp /The service ".*" must not be abstract as this entity listener is lazy-loaded/
1011
     */
1012
    public function testAbstractLazyEntityListener()
1013
    {
1014
        $container = $this->getContainer([]);
1015
        $loader    = new DoctrineExtension();
1016
        $container->registerExtension($loader);
1017
        $container->addCompilerPass(new EntityListenerPass());
1018
1019
        $this->loadFromFile($container, 'orm_entity_listener_lazy_abstract');
1020
1021
        $this->compileContainer($container);
1022
    }
1023
1024
    public function testRepositoryFactory()
1025
    {