Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

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