Code Duplication    Length = 8-8 lines in 3 locations

Tests/RegistryTest.php 3 locations

@@ 65-72 (lines=8) @@
62
        $this->assertSame($conn, $registry->getConnection('default'));
63
    }
64
65
    public function testGetUnknownConnection()
66
    {
67
        $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
68
        $registry = new Registry($container, array(), array(), 'default', 'default');
69
70
        $this->setExpectedException('InvalidArgumentException', 'Doctrine ORM Connection named "default" does not exist.');
71
        $registry->getConnection('default');
72
    }
73
74
    public function testGetConnectionNames()
75
    {
@@ 110-117 (lines=8) @@
107
        $this->assertSame($em, $registry->getManager('default'));
108
    }
109
110
    public function testGetUnknownEntityManager()
111
    {
112
        $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
113
        $registry = new Registry($container, array(), array(), 'default', 'default');
114
115
        $this->setExpectedException('InvalidArgumentException', 'Doctrine ORM Manager named "default" does not exist.');
116
        $registry->getManager('default');
117
    }
118
119
    public function testResetUnknownEntityManager()
120
    {
@@ 119-126 (lines=8) @@
116
        $registry->getManager('default');
117
    }
118
119
    public function testResetUnknownEntityManager()
120
    {
121
        $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
122
        $registry = new Registry($container, array(), array(), 'default', 'default');
123
124
        $this->setExpectedException('InvalidArgumentException', 'Doctrine ORM Manager named "default" does not exist.');
125
        $registry->resetManager('default');
126
    }
127
}
128