@@ 521-527 (lines=7) @@ | ||
518 | } |
|
519 | ||
520 | $this->assertTrue($r[0]->faultCode() == 0, "fault from good1"); |
|
521 | if (!$r[0]->faultCode()) { |
|
522 | $val = $r[0]->value(); |
|
523 | $this->assertTrue( |
|
524 | $val->kindOf() == 'scalar' && $val->scalartyp() == 'string', |
|
525 | "good1 did not return string" |
|
526 | ); |
|
527 | } |
|
528 | $this->assertTrue($r[1]->faultCode() != 0, "no fault from bad"); |
|
529 | $this->assertTrue($r[2]->faultCode() != 0, "no fault from recursive system.multicall"); |
|
530 | $this->assertTrue($r[3]->faultCode() == 0, "fault from good2"); |
|
@@ 531-534 (lines=4) @@ | ||
528 | $this->assertTrue($r[1]->faultCode() != 0, "no fault from bad"); |
|
529 | $this->assertTrue($r[2]->faultCode() != 0, "no fault from recursive system.multicall"); |
|
530 | $this->assertTrue($r[3]->faultCode() == 0, "fault from good2"); |
|
531 | if (!$r[3]->faultCode()) { |
|
532 | $val = $r[3]->value(); |
|
533 | $this->assertTrue($val->kindOf() == 'array', "good2 did not return array"); |
|
534 | } |
|
535 | // This is the only assert in this test which should fail |
|
536 | // if the test server does not support system.multicall. |
|
537 | $this->assertTrue($this->client->no_multicall == false, |
|
@@ 564-569 (lines=6) @@ | ||
561 | } |
|
562 | ||
563 | $this->assertTrue($r[0]->faultCode() == 0, "fault from good1"); |
|
564 | if (!$r[0]->faultCode()) { |
|
565 | $val = $r[0]->value(); |
|
566 | $this->assertTrue( |
|
567 | $val->kindOf() == 'scalar' && $val->scalartyp() == 'string', |
|
568 | "good1 did not return string"); |
|
569 | } |
|
570 | $this->assertTrue($r[1]->faultCode() != 0, "no fault from bad"); |
|
571 | $this->assertTrue($r[2]->faultCode() == 0, "fault from (non recursive) system.multicall"); |
|
572 | $this->assertTrue($r[3]->faultCode() == 0, "fault from good2"); |
|
@@ 573-576 (lines=4) @@ | ||
570 | $this->assertTrue($r[1]->faultCode() != 0, "no fault from bad"); |
|
571 | $this->assertTrue($r[2]->faultCode() == 0, "fault from (non recursive) system.multicall"); |
|
572 | $this->assertTrue($r[3]->faultCode() == 0, "fault from good2"); |
|
573 | if (!$r[3]->faultCode()) { |
|
574 | $val = $r[3]->value(); |
|
575 | $this->assertTrue($val->kindOf() == 'array', "good2 did not return array"); |
|
576 | } |
|
577 | } |
|
578 | ||
579 | public function testClientMulticall3() |