Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add details if test failed.

git-svn-id: http://svn.php.net/repository/pear/packages/SOAP_Interop/trunk@228161 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit cc67b79443289b3c932fc2735398f957c07010f7 1 parent 5672332
Jan Schneider authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  interop_client.php
View
3  interop_client.php
@@ -419,10 +419,12 @@ function doEndpointMethod(&$endpoint_info, &$soap_test)
// compare the results with what we sent
$ok = $this->compareResult($sent_d, $return, $sent->type);
+ $expected = $sent_d;
unset($sent_d);
unset($sent);
if (!$ok && $soap_test->expect) {
$ok = $this->compareResult($soap_test->expect, $return);
+ $expected = $soap_test->expect;
}
if ($ok) {
@@ -443,6 +445,7 @@ function doEndpointMethod(&$endpoint_info, &$soap_test)
$fault = new stdClass();
$fault->faultcode = 'RESULT';
$fault->faultstring = 'The returned result did not match what we expected to receive';
+ $fault->faultdetail = "RETURNED:\n" . var_export($return, true) . "\n\nEXPECTED:\n" . var_export($expected, true);
$soap_test->setResult(0,
$fault->faultcode,
$soap->getWire(),
Please sign in to comment.
Something went wrong with that request. Please try again.