Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1014-1021 (lines=8) @@
1011
    /**
1012
     * @depends testDaoGeneration
1013
     */
1014
    public function testUniqueIndexBasedSearch()
1015
    {
1016
        $userDao = new UserDao($this->tdbmService);
1017
        $user = $userDao->findOneByLogin('bill.shakespeare');
1018
1019
        $this->assertEquals('bill.shakespeare', $user->getLogin());
1020
        $this->assertEquals('Bill Shakespeare', $user->getName());
1021
    }
1022
1023
    /**
1024
     * @depends testDaoGeneration
@@ 1038-1045 (lines=8) @@
1035
    /**
1036
     * @depends testDaoGeneration
1037
     */
1038
    public function testMultiColumnsIndexBasedSearch()
1039
    {
1040
        $countryDao = new CountryDao($this->tdbmService);
1041
        $userDao = new UserDao($this->tdbmService);
1042
        $users = $userDao->findByStatusAndCountry('on', $countryDao->getById(1));
1043
1044
        $this->assertEquals('jean.dupont', $users[0]->getLogin());
1045
    }
1046
1047
    /**
1048
     * @depends testDaoGeneration