Code Duplication    Length = 7-9 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1219-1227 (lines=9) @@
1216
    /**
1217
     * @depends testDaoGeneration
1218
     */
1219
    public function testOrderByExternalCol()
1220
    {
1221
        // This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106
1222
1223
        $userDao = new TestUserDao($this->tdbmService);
1224
        $users = $userDao->getUsersByCountryName();
1225
1226
        $this->assertEquals('UK', $users[0]->getCountry()->getLabel());
1227
    }
1228
1229
    /**
1230
     * @depends testDaoGeneration
@@ 1259-1265 (lines=7) @@
1256
    /**
1257
     * @depends testDaoGeneration
1258
     */
1259
    public function testOrderByExpression()
1260
    {
1261
        $userDao = new TestUserDao($this->tdbmService);
1262
        $users = $userDao->getUsersByReversedCountryName();
1263
1264
        $this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel());
1265
    }
1266
1267
    /**
1268
     * @depends testDaoGeneration