Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

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