Lines Matching refs:soap_test

252     function _saveResults($endpoint_id, &$soap_test) {  argument
255 $result = $soap_test->result;
270 $test_name = $soap_test->test_name;
355 function doEndpointMethod(&$endpoint_info, &$soap_test) { argument
359 $soap_test->result['class'] = $this->currentTest;
360 $soap_test->result['type'] = $this->paramType;
361 $soap_test->result['wsdl'] = $this->useWSDL;
377 $soap_test->setResult(0,'WSDL',
386 $soap_test->setResult(0,'WSDL',
420 if ($this->useWSDL && !$soap_test->headers && !$soap_test->headers_expect) {
422 foreach ($soap_test->method_params as $pname => $param) {
426 $return = eval('return $soap->'.$soap_test->method_name.'('.$args.');');
428 if ($soap_test->headers || $soap_test->headers_expect) {
429 …= $soap->__soapCall($soap_test->method_name,$soap_test->method_params,array('soapaction'=>$soapact…
431 …$return = $soap->__soapCall($soap_test->method_name,$soap_test->method_params,array('soapaction'=>…
439 if ($soap_test->expect !== NULL) {
440 $sent = $soap_test->expect;
441 … } else if (is_array($soap_test->method_params) && count($soap_test->method_params) == 1) {
442 reset($soap_test->method_params);
443 $sent = current($soap_test->method_params);
444 … } else if (is_array($soap_test->method_params) && count($soap_test->method_params) == 0) {
447 $sent = $soap_test->method_params;
452 if ($soap_test->headers || $soap_test->headers_expect) {
453 $headers_ok = $this->compareResult($soap_test->headers_expect, $result_headers);
459 $soap_test->result['sent'] = $sent;
460 $soap_test->result['return'] = $return;
464 if ($soap_test->cmp_func !== NULL) {
465 $cmp_func = $soap_test->cmp_func;
469 if (!$ok && $soap_test->expect) {
470 $ok = $this->compareResult($soap_test->expect,$return);
479 if ($soap_test->headers_expect) {
480 $wire .= "\nEXPECTED HEADERS:\n".var_dump_str($soap_test->headers_expect)."\n".
488 $soap_test->setResult(0,$fault->faultcode,
494 $soap_test->setResult(1,'OK',$wire);
499 $soap_test->setResult(0,$fault->faultcode,
507 if ($soap_test->expect_fault) {
524 $soap_test->setResult($ok,$res, $wire,$fault->faultstring, $fault);
560 foreach($soap_tests[$this->currentTest] as $soap_test) {
564 if ($soap_test->type != $this->paramType) continue;
574 $soap_test->setResult(0,$fault->faultcode, '',
581 $soap_test->result = NULL;
586 … if ($this->testMethod && strcmp($this->testMethod,$soap_test->test_name) != 0) continue;
590 $soap_test->setResult(0,$fault->faultcode, '',
598 if ($this->doEndpointMethod($endpoint_info, $soap_test)) {
601 $skipendpoint = $soap_test->result['fault']->faultcode=='HTTP'
602 && strstr($soap_test->result['fault']->faultstring,'Connect Error');
603 $skipfault = $soap_test->result['fault'];
608 $soap_test->showTestResult($this->debug, $this->html);
609 $this->_saveResults($endpoint_info['id'], $soap_test);
610 $soap_test->result = NULL;