Code Duplication    Length = 9-12 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 245-253 (lines=9) @@
242
    /**
243
     * @depends testDaoGeneration
244
     */
245
    public function testAssigningNewBeans()
246
    {
247
        $userDao = new UserDao($this->tdbmService);
248
        $countryBean = new CountryBean('Mexico');
249
        $userBean = new UserBean('Speedy Gonzalez', '[email protected]', $countryBean, 'speedy.gonzalez');
250
        $this->assertEquals($countryBean, $userBean->getCountry());
251
252
        $userDao->save($userBean);
253
    }
254
255
    /**
256
     * @depends testAssigningNewBeans
@@ 1403-1414 (lines=12) @@
1400
    /**
1401
     * @depends testDaoGeneration
1402
     */
1403
    public function testCyclicReferenceWithInheritance()
1404
    {
1405
        $userDao = new UserDao($this->tdbmService);
1406
1407
        $country = new CountryBean('Norrisland');
1408
        $user = new UserBean('Chuck Norris', '[email protected]', $country, 'chuck.norris');
1409
1410
        $user->setManager($user);
1411
1412
        $this->expectException(TDBMCyclicReferenceException::class);
1413
        $userDao->save($user);
1414
    }
1415
1416
    /**
1417
     * @depends testDaoGeneration