Code Duplication    Length = 10-10 lines in 3 locations

tests/TDBMDaoGeneratorTest.php 3 locations

@@ 845-854 (lines=10) @@
842
    /**
843
     * @depends testDaoGeneration
844
     */
845
    public function testArrayJsonEncode()
846
    {
847
        $userDao = new TestUserDao($this->tdbmService);
848
        $users = $userDao->getUsersByLoginStartingWith('bill');
849
850
        $jsonEncoded = json_encode($users);
851
        $msgDecoded = json_decode($jsonEncoded, true);
852
853
        $this->assertCount(1, $msgDecoded);
854
    }
855
856
    /**
857
     * @depends testDaoGeneration
@@ 859-868 (lines=10) @@
856
    /**
857
     * @depends testDaoGeneration
858
     */
859
    public function testCursorJsonEncode()
860
    {
861
        $userDao = new TestUserDao($this->tdbmService);
862
        $users = $userDao->getUsersByLoginStartingWith('bill', TDBMService::MODE_CURSOR);
863
864
        $jsonEncoded = json_encode($users);
865
        $msgDecoded = json_decode($jsonEncoded, true);
866
867
        $this->assertCount(1, $msgDecoded);
868
    }
869
870
    /**
871
     * @depends testDaoGeneration
@@ 873-882 (lines=10) @@
870
    /**
871
     * @depends testDaoGeneration
872
     */
873
    public function testPageJsonEncode()
874
    {
875
        $userDao = new TestUserDao($this->tdbmService);
876
        $users = $userDao->getUsersByLoginStartingWith('bill');
877
878
        $jsonEncoded = json_encode($users->take(0, 1));
879
        $msgDecoded = json_decode($jsonEncoded, true);
880
881
        $this->assertCount(1, $msgDecoded);
882
    }
883
884
    /**
885
     * @depends testDaoGeneration