Code Duplication    Length = 7-9 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1249-1257 (lines=9) @@
1246
    /**
1247
     * @depends testDaoGeneration
1248
     */
1249
    public function testOrderByExternalCol()
1250
    {
1251
        // This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106
1252
1253
        $userDao = new TestUserDao($this->tdbmService);
1254
        $users = $userDao->getUsersByCountryName();
1255
1256
        $this->assertEquals('UK', $users[0]->getCountry()->getLabel());
1257
    }
1258
1259
    /**
1260
     * @depends testDaoGeneration
@@ 1289-1295 (lines=7) @@
1286
    /**
1287
     * @depends testDaoGeneration
1288
     */
1289
    public function testOrderByExpression()
1290
    {
1291
        $userDao = new TestUserDao($this->tdbmService);
1292
        $users = $userDao->getUsersByReversedCountryName();
1293
1294
        $this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel());
1295
    }
1296
1297
    /**
1298
     * @depends testDaoGeneration