Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1086-1093 (lines=8) @@
1083
    /**
1084
     * @depends testDaoGeneration
1085
     */
1086
    public function testUniqueIndexBasedSearch()
1087
    {
1088
        $userDao = new UserDao($this->tdbmService);
1089
        $user = $userDao->findOneByLogin('bill.shakespeare');
1090
1091
        $this->assertEquals('bill.shakespeare', $user->getLogin());
1092
        $this->assertEquals('Bill Shakespeare', $user->getName());
1093
    }
1094
1095
    /**
1096
     * @depends testDaoGeneration
@@ 1110-1117 (lines=8) @@
1107
    /**
1108
     * @depends testDaoGeneration
1109
     */
1110
    public function testMultiColumnsIndexBasedSearch()
1111
    {
1112
        $countryDao = new CountryDao($this->tdbmService);
1113
        $userDao = new UserDao($this->tdbmService);
1114
        $users = $userDao->findByStatusAndCountry('on', $countryDao->getById(1));
1115
1116
        $this->assertEquals('jean.dupont', $users[0]->getLogin());
1117
    }
1118
1119
    /**
1120
     * @depends testDaoGeneration