Пример #1
0
 public function testAddingArrayOfSoapHeaders()
 {
     $headers = array(new SoapHeader('foo', 'bar'), new SoapHeader('baz', 'qux'));
     $base = new Zend_Service_StrikeIron_Base(array('client' => $this->soapClient, 'headers' => $headers));
     $base->foo();
     $headers = $this->soapClient->calls[0]['headers'];
     $this->assertType('array', $headers);
     $this->assertEquals(3, count($headers));
     // these 2 + default LicenseInfo
 }
Пример #2
0
 public function __construct($options = array())
 {
     $this->_options['wsdl'] = $this->_wsdlDecode();
     parent::__construct($options);
 }