|
@@ 509-515 (lines=7) @@
|
| 506 |
|
} |
| 507 |
|
|
| 508 |
|
$this->assertTrue($r[0]->faultCode() == 0, "fault from good1"); |
| 509 |
|
if (!$r[0]->faultCode()) { |
| 510 |
|
$val = $r[0]->value(); |
| 511 |
|
$this->assertTrue( |
| 512 |
|
$val->kindOf() == 'scalar' && $val->scalartyp() == 'string', |
| 513 |
|
"good1 did not return string" |
| 514 |
|
); |
| 515 |
|
} |
| 516 |
|
$this->assertTrue($r[1]->faultCode() != 0, "no fault from bad"); |
| 517 |
|
$this->assertTrue($r[2]->faultCode() != 0, "no fault from recursive system.multicall"); |
| 518 |
|
$this->assertTrue($r[3]->faultCode() == 0, "fault from good2"); |
|
@@ 519-522 (lines=4) @@
|
| 516 |
|
$this->assertTrue($r[1]->faultCode() != 0, "no fault from bad"); |
| 517 |
|
$this->assertTrue($r[2]->faultCode() != 0, "no fault from recursive system.multicall"); |
| 518 |
|
$this->assertTrue($r[3]->faultCode() == 0, "fault from good2"); |
| 519 |
|
if (!$r[3]->faultCode()) { |
| 520 |
|
$val = $r[3]->value(); |
| 521 |
|
$this->assertTrue($val->kindOf() == 'array', "good2 did not return array"); |
| 522 |
|
} |
| 523 |
|
// This is the only assert in this test which should fail |
| 524 |
|
// if the test server does not support system.multicall. |
| 525 |
|
$this->assertTrue($this->client->no_multicall == false, |
|
@@ 552-557 (lines=6) @@
|
| 549 |
|
} |
| 550 |
|
|
| 551 |
|
$this->assertTrue($r[0]->faultCode() == 0, "fault from good1"); |
| 552 |
|
if (!$r[0]->faultCode()) { |
| 553 |
|
$val = $r[0]->value(); |
| 554 |
|
$this->assertTrue( |
| 555 |
|
$val->kindOf() == 'scalar' && $val->scalartyp() == 'string', |
| 556 |
|
"good1 did not return string"); |
| 557 |
|
} |
| 558 |
|
$this->assertTrue($r[1]->faultCode() != 0, "no fault from bad"); |
| 559 |
|
$this->assertTrue($r[2]->faultCode() == 0, "fault from (non recursive) system.multicall"); |
| 560 |
|
$this->assertTrue($r[3]->faultCode() == 0, "fault from good2"); |
|
@@ 561-564 (lines=4) @@
|
| 558 |
|
$this->assertTrue($r[1]->faultCode() != 0, "no fault from bad"); |
| 559 |
|
$this->assertTrue($r[2]->faultCode() == 0, "fault from (non recursive) system.multicall"); |
| 560 |
|
$this->assertTrue($r[3]->faultCode() == 0, "fault from good2"); |
| 561 |
|
if (!$r[3]->faultCode()) { |
| 562 |
|
$val = $r[3]->value(); |
| 563 |
|
$this->assertTrue($val->kindOf() == 'array', "good2 did not return array"); |
| 564 |
|
} |
| 565 |
|
} |
| 566 |
|
|
| 567 |
|
public function testClientMulticall3() |