Code Duplication    Length = 4-5 lines in 2 locations

tests/3LocalhostTest.php 2 locations

@@ 589-593 (lines=5) @@
586
            $this->assertTrue(count($r) == 4, "wrong number of return values");
587
        }
588
        $this->assertTrue($r[0]->faultCode() == 0, "fault from good1");
589
        if (!$r[0]->faultCode()) {
590
            $val = $r[0]->value();
591
            $this->assertTrue(
592
                is_string($val), "good1 did not return string");
593
        }
594
        $this->assertTrue($r[1]->faultCode() != 0, "no fault from bad");
595
        $this->assertTrue($r[2]->faultCode() != 0, "no fault from recursive system.multicall");
596
        $this->assertTrue($r[3]->faultCode() == 0, "fault from good2");
@@ 597-600 (lines=4) @@
594
        $this->assertTrue($r[1]->faultCode() != 0, "no fault from bad");
595
        $this->assertTrue($r[2]->faultCode() != 0, "no fault from recursive system.multicall");
596
        $this->assertTrue($r[3]->faultCode() == 0, "fault from good2");
597
        if (!$r[3]->faultCode()) {
598
            $val = $r[3]->value();
599
            $this->assertTrue(is_array($val), "good2 did not return array");
600
        }
601
        $this->client->return_type = 'xmlrpcvals';
602
    }
603