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 }
public function __construct($options = array()) { $this->_options['wsdl'] = $this->_wsdlDecode(); parent::__construct($options); }