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
@@ 1026-1033 (lines=8) @@
1023
    /**
1024
     * @depends testDaoGeneration
1025
     */
1026
    public function testMultiColumnsIndexBasedSearch()
1027
    {
1028
        $countryDao = new CountryDao($this->tdbmService);
1029
        $userDao = new UserDao($this->tdbmService);
1030
        $users = $userDao->findByStatusAndCountry('on', $countryDao->getById(1));
1031
1032
        $this->assertEquals('jean.dupont', $users[0]->getLogin());
1033
    }
1034
1035
    /**
1036
     * @depends testDaoGeneration