Code Duplication    Length = 7-9 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1231-1239 (lines=9) @@
1228
    /**
1229
     * @depends testDaoGeneration
1230
     */
1231
    public function testOrderByExternalCol()
1232
    {
1233
        // This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106
1234
1235
        $userDao = new TestUserDao($this->tdbmService);
1236
        $users = $userDao->getUsersByCountryName();
1237
1238
        $this->assertEquals('UK', $users[0]->getCountry()->getLabel());
1239
    }
1240
1241
    /**
1242
     * @depends testDaoGeneration
@@ 1271-1277 (lines=7) @@
1268
    /**
1269
     * @depends testDaoGeneration
1270
     */
1271
    public function testOrderByExpression()
1272
    {
1273
        $userDao = new TestUserDao($this->tdbmService);
1274
        $users = $userDao->getUsersByReversedCountryName();
1275
1276
        $this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel());
1277
    }
1278
1279
    /**
1280
     * @depends testDaoGeneration