Code Duplication    Length = 11-11 lines in 2 locations

Tests/DependencyInjection/AbstractDoctrineExtensionTest.php 2 locations

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