Code Duplication    Length = 11-11 lines in 2 locations

Tests/DependencyInjection/AbstractDoctrineExtensionTest.php 2 locations

@@ 962-972 (lines=11) @@
959
     * @expectedException \InvalidArgumentException
960
     * @expectedExceptionMessage EntityListenerServiceResolver
961
     */
962
    public function testLazyEntityListenerResolverWithoutCorrectInterface()
963
    {
964
        $container = $this->getContainer([]);
965
        $loader    = new DoctrineExtension();
966
        $container->registerExtension($loader);
967
        $container->addCompilerPass(new EntityListenerPass());
968
969
        $this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface');
970
971
        $this->compileContainer($container);
972
    }
973
974
    public function testPrivateLazyEntityListener()
975
    {
@@ 992-1002 (lines=11) @@
989
     * @expectedException \InvalidArgumentException
990
     * @expectedExceptionMessageRegExp /The service ".*" must not be abstract as this entity listener is lazy-loaded/
991
     */
992
    public function testAbstractLazyEntityListener()
993
    {
994
        $container = $this->getContainer([]);
995
        $loader    = new DoctrineExtension();
996
        $container->registerExtension($loader);
997
        $container->addCompilerPass(new EntityListenerPass());
998
999
        $this->loadFromFile($container, 'orm_entity_listener_lazy_abstract');
1000
1001
        $this->compileContainer($container);
1002
    }
1003
1004
    public function testRepositoryFactory()
1005
    {