Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

@@ 1008-1015 (lines=8) @@
1005
    /**
1006
     * @depends testDaoGeneration
1007
     */
1008
    public function testUniqueIndexBasedSearch()
1009
    {
1010
        $userDao = new UserDao($this->tdbmService);
1011
        $user = $userDao->findOneByLogin('bill.shakespeare');
1012
1013
        $this->assertEquals('bill.shakespeare', $user->getLogin());
1014
        $this->assertEquals('Bill Shakespeare', $user->getName());
1015
    }
1016
1017
    /**
1018
     * @depends testDaoGeneration
@@ 1020-1027 (lines=8) @@
1017
    /**
1018
     * @depends testDaoGeneration
1019
     */
1020
    public function testMultiColumnsIndexBasedSearch()
1021
    {
1022
        $countryDao = new CountryDao($this->tdbmService);
1023
        $userDao = new UserDao($this->tdbmService);
1024
        $users = $userDao->findByStatusAndCountry('on', $countryDao->getById(1));
1025
1026
        $this->assertEquals('jean.dupont', $users[0]->getLogin());
1027
    }
1028
1029
    /**
1030
     * @depends testDaoGeneration