Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1054-1061 (lines=8) @@
1051
    /**
1052
     * @depends testDaoGeneration
1053
     */
1054
    public function testUniqueIndexBasedSearch()
1055
    {
1056
        $userDao = new UserDao($this->tdbmService);
1057
        $user = $userDao->findOneByLogin('bill.shakespeare');
1058
1059
        $this->assertEquals('bill.shakespeare', $user->getLogin());
1060
        $this->assertEquals('Bill Shakespeare', $user->getName());
1061
    }
1062
1063
    /**
1064
     * @depends testDaoGeneration
@@ 1078-1085 (lines=8) @@
1075
    /**
1076
     * @depends testDaoGeneration
1077
     */
1078
    public function testMultiColumnsIndexBasedSearch()
1079
    {
1080
        $countryDao = new CountryDao($this->tdbmService);
1081
        $userDao = new UserDao($this->tdbmService);
1082
        $users = $userDao->findByStatusAndCountry('on', $countryDao->getById(1));
1083
1084
        $this->assertEquals('jean.dupont', $users[0]->getLogin());
1085
    }
1086
1087
    /**
1088
     * @depends testDaoGeneration