Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1042-1049 (lines=8) @@
1039
    /**
1040
     * @depends testDaoGeneration
1041
     */
1042
    public function testUniqueIndexBasedSearch()
1043
    {
1044
        $userDao = new UserDao($this->tdbmService);
1045
        $user = $userDao->findOneByLogin('bill.shakespeare');
1046
1047
        $this->assertEquals('bill.shakespeare', $user->getLogin());
1048
        $this->assertEquals('Bill Shakespeare', $user->getName());
1049
    }
1050
1051
    /**
1052
     * @depends testDaoGeneration
@@ 1066-1073 (lines=8) @@
1063
    /**
1064
     * @depends testDaoGeneration
1065
     */
1066
    public function testMultiColumnsIndexBasedSearch()
1067
    {
1068
        $countryDao = new CountryDao($this->tdbmService);
1069
        $userDao = new UserDao($this->tdbmService);
1070
        $users = $userDao->findByStatusAndCountry('on', $countryDao->getById(1));
1071
1072
        $this->assertEquals('jean.dupont', $users[0]->getLogin());
1073
    }
1074
1075
    /**
1076
     * @depends testDaoGeneration