Code Duplication    Length = 11-11 lines in 2 locations

Tests/DependencyInjection/AbstractDoctrineExtensionTest.php 2 locations

@@ 918-928 (lines=11) @@
915
     * @expectedException \InvalidArgumentException
916
     * @expectedExceptionMessage EntityListenerServiceResolver
917
     */
918
    public function testLazyEntityListenerResolverWithoutCorrectInterface()
919
    {
920
        $container = $this->getContainer([]);
921
        $loader    = new DoctrineExtension();
922
        $container->registerExtension($loader);
923
        $container->addCompilerPass(new EntityListenerPass());
924
925
        $this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface');
926
927
        $this->compileContainer($container);
928
    }
929
930
    public function testPrivateLazyEntityListener()
931
    {
@@ 948-958 (lines=11) @@
945
     * @expectedException \InvalidArgumentException
946
     * @expectedExceptionMessageRegExp /The service ".*" must not be abstract as this entity listener is lazy-loaded/
947
     */
948
    public function testAbstractLazyEntityListener()
949
    {
950
        $container = $this->getContainer([]);
951
        $loader    = new DoctrineExtension();
952
        $container->registerExtension($loader);
953
        $container->addCompilerPass(new EntityListenerPass());
954
955
        $this->loadFromFile($container, 'orm_entity_listener_lazy_abstract');
956
957
        $this->compileContainer($container);
958
    }
959
960
    public function testRepositoryFactory()
961
    {