Code Duplication    Length = 8-8 lines in 2 locations

tests/TDBMDaoGeneratorTest.php 2 locations

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