Code Duplication    Length = 7-9 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1207-1215 (lines=9) @@
1204
    /**
1205
     * @depends testDaoGeneration
1206
     */
1207
    public function testOrderByExternalCol()
1208
    {
1209
        // This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106
1210
1211
        $userDao = new TestUserDao($this->tdbmService);
1212
        $users = $userDao->getUsersByCountryName();
1213
1214
        $this->assertEquals('UK', $users[0]->getCountry()->getLabel());
1215
    }
1216
1217
    /**
1218
     * @depends testDaoGeneration
@@ 1247-1253 (lines=7) @@
1244
    /**
1245
     * @depends testDaoGeneration
1246
     */
1247
    public function testOrderByExpression()
1248
    {
1249
        $userDao = new TestUserDao($this->tdbmService);
1250
        $users = $userDao->getUsersByReversedCountryName();
1251
1252
        $this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel());
1253
    }
1254
1255
    /**
1256
     * @depends testDaoGeneration