Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

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