Code Duplication    Length = 10-10 lines in 3 locations

tests/TDBMDaoGeneratorTest.php 3 locations

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