Code Duplication    Length = 9-12 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 238-246 (lines=9) @@
235
    /**
236
     * @depends testDaoGeneration
237
     */
238
    public function testAssigningNewBeans()
239
    {
240
        $userDao = new UserDao($this->tdbmService);
241
        $countryBean = new CountryBean('Mexico');
242
        $userBean = new UserBean('Speedy Gonzalez', '[email protected]', $countryBean, 'speedy.gonzalez');
243
        $this->assertEquals($countryBean, $userBean->getCountry());
244
245
        $userDao->save($userBean);
246
    }
247
248
    /**
249
     * @depends testAssigningNewBeans
@@ 1325-1336 (lines=12) @@
1322
    /**
1323
     * @depends testDaoGeneration
1324
     */
1325
    public function testCyclicReferenceWithInheritance()
1326
    {
1327
        $userDao = new UserDao($this->tdbmService);
1328
1329
        $country = new CountryBean('Norrisland');
1330
        $user = new UserBean('Chuck Norris', '[email protected]', $country, 'chuck.norris');
1331
1332
        $user->setManager($user);
1333
1334
        $this->expectException(TDBMCyclicReferenceException::class);
1335
        $userDao->save($user);
1336
    }
1337
1338
    /**
1339
     * @depends testDaoGeneration