call() 공개 메소드

public call ( $port, string $method, object $requestObject, apiContext $apiContext, array $handlers = [] )
$method string - API method to call
$requestObject object Request object
$apiContext apiContext object containing credential and SOAP headers
$handlers array Array of Handlers
 public function testMultipleCallsDoesntIncludePreviousCallHandlers()
 {
     $firstHandler = $this->getMock('\\PayPal\\Handler\\IPPHandler');
     $firstHandler->expects($this->once())->method('handle');
     $req = new MockNVPClass();
     $ret = $this->object->call(null, 'GetInvoiceDetails', $req, null, array($firstHandler));
     $secondHandler = $this->getMock('\\PayPal\\Handler\\IPPHandler');
     $secondHandler->expects($this->once())->method('handle');
     $req = new MockNVPClass();
     $ret = $this->object->call(null, 'GetInvoiceDetails', $req, null, array($secondHandler));
 }