Code Duplication    Length = 11-11 lines in 2 locations

Tests/DependencyInjection/AbstractDoctrineExtensionTest.php 2 locations

@@ 853-863 (lines=11) @@
850
     * @expectedException \InvalidArgumentException
851
     * @expectedExceptionMessage EntityListenerServiceResolver
852
     */
853
    public function testLazyEntityListenerResolverWithoutCorrectInterface()
854
    {
855
        $container = $this->getContainer([]);
856
        $loader    = new DoctrineExtension();
857
        $container->registerExtension($loader);
858
        $container->addCompilerPass(new EntityListenerPass());
859
860
        $this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface');
861
862
        $this->compileContainer($container);
863
    }
864
865
    public function testPrivateLazyEntityListener()
866
    {
@@ 883-893 (lines=11) @@
880
     * @expectedException \InvalidArgumentException
881
     * @expectedExceptionMessageRegExp /The service ".*" must not be abstract as this entity listener is lazy-loaded/
882
     */
883
    public function testAbstractLazyEntityListener()
884
    {
885
        $container = $this->getContainer([]);
886
        $loader    = new DoctrineExtension();
887
        $container->registerExtension($loader);
888
        $container->addCompilerPass(new EntityListenerPass());
889
890
        $this->loadFromFile($container, 'orm_entity_listener_lazy_abstract');
891
892
        $this->compileContainer($container);
893
    }
894
895
    public function testRepositoryFactory()
896
    {