Code Duplication    Length = 11-11 lines in 2 locations

Tests/DependencyInjection/AbstractDoctrineExtensionTest.php 2 locations

@@ 972-982 (lines=11) @@
969
     * @expectedException \InvalidArgumentException
970
     * @expectedExceptionMessage EntityListenerServiceResolver
971
     */
972
    public function testLazyEntityListenerResolverWithoutCorrectInterface()
973
    {
974
        $container = $this->getContainer([]);
975
        $loader    = new DoctrineExtension();
976
        $container->registerExtension($loader);
977
        $container->addCompilerPass(new EntityListenerPass());
978
979
        $this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface');
980
981
        $this->compileContainer($container);
982
    }
983
984
    public function testPrivateLazyEntityListener()
985
    {
@@ 1002-1012 (lines=11) @@
999
     * @expectedException \InvalidArgumentException
1000
     * @expectedExceptionMessageRegExp /The service ".*" must not be abstract as this entity listener is lazy-loaded/
1001
     */
1002
    public function testAbstractLazyEntityListener()
1003
    {
1004
        $container = $this->getContainer([]);
1005
        $loader    = new DoctrineExtension();
1006
        $container->registerExtension($loader);
1007
        $container->addCompilerPass(new EntityListenerPass());
1008
1009
        $this->loadFromFile($container, 'orm_entity_listener_lazy_abstract');
1010
1011
        $this->compileContainer($container);
1012
    }
1013
1014
    public function testRepositoryFactory()
1015
    {