Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1030-1037 (lines=8) @@
1027
    /**
1028
     * @depends testDaoGeneration
1029
     */
1030
    public function testUniqueIndexBasedSearch()
1031
    {
1032
        $userDao = new UserDao($this->tdbmService);
1033
        $user = $userDao->findOneByLogin('bill.shakespeare');
1034
1035
        $this->assertEquals('bill.shakespeare', $user->getLogin());
1036
        $this->assertEquals('Bill Shakespeare', $user->getName());
1037
    }
1038
1039
    /**
1040
     * @depends testDaoGeneration
@@ 1054-1061 (lines=8) @@
1051
    /**
1052
     * @depends testDaoGeneration
1053
     */
1054
    public function testMultiColumnsIndexBasedSearch()
1055
    {
1056
        $countryDao = new CountryDao($this->tdbmService);
1057
        $userDao = new UserDao($this->tdbmService);
1058
        $users = $userDao->findByStatusAndCountry('on', $countryDao->getById(1));
1059
1060
        $this->assertEquals('jean.dupont', $users[0]->getLogin());
1061
    }
1062
1063
    /**
1064
     * @depends testDaoGeneration