Code Duplication    Length = 10-10 lines in 3 locations

tests/TDBMDaoGeneratorTest.php 3 locations

@@ 814-823 (lines=10) @@
811
    /**
812
     * @depends testDaoGeneration
813
     */
814
    public function testArrayJsonEncode()
815
    {
816
        $userDao = new TestUserDao($this->tdbmService);
817
        $users = $userDao->getUsersByLoginStartingWith('bill');
818
819
        $jsonEncoded = json_encode($users);
820
        $msgDecoded = json_decode($jsonEncoded, true);
821
822
        $this->assertCount(1, $msgDecoded);
823
    }
824
825
    /**
826
     * @depends testDaoGeneration
@@ 828-837 (lines=10) @@
825
    /**
826
     * @depends testDaoGeneration
827
     */
828
    public function testCursorJsonEncode()
829
    {
830
        $userDao = new TestUserDao($this->tdbmService);
831
        $users = $userDao->getUsersByLoginStartingWith('bill', TDBMService::MODE_CURSOR);
832
833
        $jsonEncoded = json_encode($users);
834
        $msgDecoded = json_decode($jsonEncoded, true);
835
836
        $this->assertCount(1, $msgDecoded);
837
    }
838
839
    /**
840
     * @depends testDaoGeneration
@@ 842-851 (lines=10) @@
839
    /**
840
     * @depends testDaoGeneration
841
     */
842
    public function testPageJsonEncode()
843
    {
844
        $userDao = new TestUserDao($this->tdbmService);
845
        $users = $userDao->getUsersByLoginStartingWith('bill');
846
847
        $jsonEncoded = json_encode($users->take(0, 1));
848
        $msgDecoded = json_decode($jsonEncoded, true);
849
850
        $this->assertCount(1, $msgDecoded);
851
    }
852
853
    /**
854
     * @depends testDaoGeneration