Lines Matching refs:soap_test
254 function _saveResults($endpoint_id, &$soap_test) { argument
257 $result = $soap_test->result;
272 $test_name = $soap_test->test_name;
357 function doEndpointMethod(&$endpoint_info, &$soap_test) { argument
361 $soap_test->result['class'] = $this->currentTest;
362 $soap_test->result['type'] = $this->paramType;
363 $soap_test->result['wsdl'] = $this->useWSDL;
379 $soap_test->setResult(0,'WSDL',
388 $soap_test->setResult(0,'WSDL',
422 if ($this->useWSDL && !$soap_test->headers && !$soap_test->headers_expect) {
424 foreach ($soap_test->method_params as $pname => $param) {
428 $return = eval('return $soap->'.$soap_test->method_name.'('.$args.');');
430 if ($soap_test->headers || $soap_test->headers_expect) {
431 …= $soap->__soapCall($soap_test->method_name,$soap_test->method_params,array('soapaction'=>$soapact…
433 …$return = $soap->__soapCall($soap_test->method_name,$soap_test->method_params,array('soapaction'=>…
441 if ($soap_test->expect !== NULL) {
442 $sent = $soap_test->expect;
443 … } else if (is_array($soap_test->method_params) && count($soap_test->method_params) == 1) {
444 reset($soap_test->method_params);
445 $sent = current($soap_test->method_params);
446 … } else if (is_array($soap_test->method_params) && count($soap_test->method_params) == 0) {
449 $sent = $soap_test->method_params;
454 if ($soap_test->headers || $soap_test->headers_expect) {
455 … $headers_ok = $this->compareResult($soap_test->headers_expect, $result_headers);
461 $soap_test->result['sent'] = $sent;
462 $soap_test->result['return'] = $return;
466 if ($soap_test->cmp_func !== NULL) {
467 $cmp_func = $soap_test->cmp_func;
471 if (!$ok && $soap_test->expect) {
472 $ok = $this->compareResult($soap_test->expect,$return);
481 if ($soap_test->headers_expect) {
482 $wire .= "\nEXPECTED HEADERS:\n".var_dump_str($soap_test->headers_expect)."\n".
490 $soap_test->setResult(0,$fault->faultcode,
496 $soap_test->setResult(1,'OK',$wire);
501 $soap_test->setResult(0,$fault->faultcode,
509 if ($soap_test->expect_fault) {
526 $soap_test->setResult($ok,$res, $wire,$fault->faultstring, $fault);
562 foreach($soap_tests[$this->currentTest] as $soap_test) {
566 if ($soap_test->type != $this->paramType) continue;
576 $soap_test->setResult(0,$fault->faultcode, '',
583 $soap_test->result = NULL;
588 … if ($this->testMethod && strcmp($this->testMethod,$soap_test->test_name) != 0) continue;
592 $soap_test->setResult(0,$fault->faultcode, '',
600 if ($this->doEndpointMethod($endpoint_info, $soap_test)) {
603 $skipendpoint = $soap_test->result['fault']->faultcode=='HTTP'
604 && strstr($soap_test->result['fault']->faultstring,'Connect Error');
605 $skipfault = $soap_test->result['fault'];
610 $soap_test->showTestResult($this->debug, $this->html);
611 $this->_saveResults($endpoint_info['id'], $soap_test);
612 $soap_test->result = NULL;