public function tearDown() { $http_header_catcher = new SCA_HttpHeaderCatcher(); SCA::setHttpHeaderCatcher($http_header_catcher); unlink(dirname(__FILE__) . '/SoapHandlerTestComponent.php'); unlink(dirname(__FILE__) . '/SoapHandlerTestComponent.wsdl'); }
/** * Set up the strings representing the expected test outputs */ public function setUp() { $this->enumerate_response = file_get_contents(dirname(__FILE__) . "/enumerate.response"); $this->retrieve_response = file_get_contents(dirname(__FILE__) . "/retrieve.response"); $this->http_header_catcher = new SCA_HttpHeaderCatcher(); SCA::setHttpHeaderCatcher($this->http_header_catcher); }
/** * Set up the strings representing the expected test outputs */ public function setUp() { // $this->smd = file_get_contents(dirname(__FILE__) . "/TestService.smd"); $this->smd1 = '{"SMDVersion":".1","serviceType":"JSON-RPC","serviceURL":"'; $this->smd2 = '","methods":[{"name":"test","parameters":[{"name":"email","type":"EmailType"}],"return":{"type":"EmailResponseListType"}}],"types":[{"name":"EmailType","typedef":{"properties":[{"name":"address","type":"str"},{"name":"message","type":"str"}]}},{"name":"EmailResponseListType","typedef":{"properties":[{"name":"jsonemail","type":"EmailResponseType []"},{"name":"wsemail","type":"EmailResponseType"},{"name":"localemail","type":"EmailResponseType"}]}},{"name":"EmailResponseType","typedef":{"properties":[{"name":"address","type":"str"},{"name":"message","type":"str"},{"name":"reply","type":"str"}]}}]}'; $this->request = file_get_contents(dirname(__FILE__) . "/TestService.request"); $this->response = file_get_contents(dirname(__FILE__) . "/TestService.response"); $this->email_request = file_get_contents(dirname(__FILE__) . "/EmailService.request"); $this->email_response = file_get_contents(dirname(__FILE__) . "/EmailService.response"); $this->http_header_catcher = new SCA_HttpHeaderCatcher(); SCA::setHttpHeaderCatcher($this->http_header_catcher); }
public function setUp() { $this->http_header_catcher = new SCA_HttpHeaderCatcher(); SCA::setHttpHeaderCatcher($this->http_header_catcher); }
/** * Set up the strings representing the expected test outputs */ public function setUp() { $this->response = file_get_contents(dirname(__FILE__) . "/RestRpcTestService.response"); $this->http_header_catcher = new SCA_HttpHeaderCatcher(); SCA::setHttpHeaderCatcher($this->http_header_catcher); }