addBindingInfo() public method

public addBindingInfo ( string $name, mixed $value )
$name string
$value mixed
 /**
  * @test
  */
 public function testSerializationWithCredentialCall()
 {
     $data = new MockSOAPObject();
     $request = new PPRequest($data, 'SOAP');
     $request->addBindingInfo("namespace", 'ns="http://myns"');
     $request->addBindingInfo("securityHeader", "<abc><xyz>1</xyz></abc>");
     $expected = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" ns="http://myns" ><soapenv:Header><abc><xyz>1</xyz></abc></soapenv:Header><soapenv:Body>' . $data->toXMLString() . '</soapenv:Body></soapenv:Envelope>';
     $this->assertEquals($expected, $this->object->toString($request));
 }