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
@@ 1372-1383 (lines=12) @@
1369
    /**
1370
     * @depends testDaoGeneration
1371
     */
1372
    public function testCyclicReferenceWithInheritance()
1373
    {
1374
        $userDao = new UserDao($this->tdbmService);
1375
1376
        $country = new CountryBean('Norrisland');
1377
        $user = new UserBean('Chuck Norris', '[email protected]', $country, 'chuck.norris');
1378
1379
        $user->setManager($user);
1380
1381
        $this->expectException(TDBMCyclicReferenceException::class);
1382
        $userDao->save($user);
1383
    }
1384
1385
    /**
1386
     * @depends testDaoGeneration