Code Duplication    Length = 7-9 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1178-1186 (lines=9) @@
1175
    /**
1176
     * @depends testDaoGeneration
1177
     */
1178
    public function testOrderByExternalCol()
1179
    {
1180
        // This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106
1181
1182
        $userDao = new TestUserDao($this->tdbmService);
1183
        $users = $userDao->getUsersByCountryName();
1184
1185
        $this->assertEquals('UK', $users[0]->getCountry()->getLabel());
1186
    }
1187
1188
    /**
1189
     * @depends testDaoGeneration
@@ 1218-1224 (lines=7) @@
1215
    /**
1216
     * @depends testDaoGeneration
1217
     */
1218
    public function testOrderByExpression()
1219
    {
1220
        $userDao = new TestUserDao($this->tdbmService);
1221
        $users = $userDao->getUsersByReversedCountryName();
1222
1223
        $this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel());
1224
    }
1225
1226
    /**
1227
     * @depends testDaoGeneration