Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1073-1080 (lines=8) @@
1070
    /**
1071
     * @depends testDaoGeneration
1072
     */
1073
    public function testUniqueIndexBasedSearch()
1074
    {
1075
        $userDao = new UserDao($this->tdbmService);
1076
        $user = $userDao->findOneByLogin('bill.shakespeare');
1077
1078
        $this->assertEquals('bill.shakespeare', $user->getLogin());
1079
        $this->assertEquals('Bill Shakespeare', $user->getName());
1080
    }
1081
1082
    /**
1083
     * @depends testDaoGeneration
@@ 1097-1104 (lines=8) @@
1094
    /**
1095
     * @depends testDaoGeneration
1096
     */
1097
    public function testMultiColumnsIndexBasedSearch()
1098
    {
1099
        $countryDao = new CountryDao($this->tdbmService);
1100
        $userDao = new UserDao($this->tdbmService);
1101
        $users = $userDao->findByStatusAndCountry('on', $countryDao->getById(1));
1102
1103
        $this->assertEquals('jean.dupont', $users[0]->getLogin());
1104
    }
1105
1106
    /**
1107
     * @depends testDaoGeneration