Code Duplication    Length = 9-12 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 244-252 (lines=9) @@
241
    /**
242
     * @depends testDaoGeneration
243
     */
244
    public function testAssigningNewBeans()
245
    {
246
        $userDao = new UserDao($this->tdbmService);
247
        $countryBean = new CountryBean('Mexico');
248
        $userBean = new UserBean('Speedy Gonzalez', '[email protected]', $countryBean, 'speedy.gonzalez');
249
        $this->assertEquals($countryBean, $userBean->getCountry());
250
251
        $userDao->save($userBean);
252
    }
253
254
    /**
255
     * @depends testAssigningNewBeans
@@ 1344-1355 (lines=12) @@
1341
    /**
1342
     * @depends testDaoGeneration
1343
     */
1344
    public function testCyclicReferenceWithInheritance()
1345
    {
1346
        $userDao = new UserDao($this->tdbmService);
1347
1348
        $country = new CountryBean('Norrisland');
1349
        $user = new UserBean('Chuck Norris', '[email protected]', $country, 'chuck.norris');
1350
1351
        $user->setManager($user);
1352
1353
        $this->expectException(TDBMCyclicReferenceException::class);
1354
        $userDao->save($user);
1355
    }
1356
1357
    /**
1358
     * @depends testDaoGeneration