예제 #1
0
파일: HandlerTest.php 프로젝트: psagi/sdo
 public function tearDown()
 {
     $http_header_catcher = new SCA_HttpHeaderCatcher();
     SCA::setHttpHeaderCatcher($http_header_catcher);
     unlink(dirname(__FILE__) . '/SoapHandlerTestComponent.php');
     unlink(dirname(__FILE__) . '/SoapHandlerTestComponent.wsdl');
 }
예제 #2
0
 /**
  * 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);
 }
예제 #3
0
파일: JsonRpcTest.php 프로젝트: psagi/sdo
 /**
  * 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);
 }
예제 #4
0
 public function setUp()
 {
     $this->http_header_catcher = new SCA_HttpHeaderCatcher();
     SCA::setHttpHeaderCatcher($this->http_header_catcher);
 }
예제 #5
0
파일: RestRpcTest.php 프로젝트: psagi/sdo
 /**
  * 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);
 }