Inheritance: extends SoapClient
コード例 #1
0
ファイル: SoapClientTest.php プロジェクト: alnutile/drunatra
 public function testDoRequestExpectingException()
 {
     $exception = '\\LogicException';
     $hook = $this->getLibraryHookMock(true);
     $hook->expects($this->once())->method('doRequest')->will($this->throwException(new \LogicException('hook not enabled.')));
     $client = new SoapClient(self::WSDL);
     $client->setLibraryHook($hook);
     $this->setExpectedException($exception);
     $client->__doRequest('Knorx ist groß', self::WSDL, self::ACTION, SOAP_1_2);
 }
コード例 #2
0
ファイル: SoapClient.php プロジェクト: migros/php-vcr
 /**
  * Performs a real SOAP request over HTTP.
  *
  * @codeCoverageIgnore
  * @param  string  $request  The XML SOAP request.
  * @param  string  $location The URL to request.
  * @param  string  $action   The SOAP action.
  * @param  integer $version  The SOAP version.
  * @param  integer $one_way  If one_way is set to 1, this method returns nothing.
  *                           Use this where a response is not expected.
  * @return string  The XML SOAP response.
  */
 protected function realDoRequest($request, $location, $action, $version, $one_way = 0)
 {
     return parent::__doRequest($request, $location, $action, $version, $one_way);
 }