setServiceName() public method

public setServiceName ( $serviceName )
 /**
  * @test
  */
 public function testMakeRequestWithoutHandlers()
 {
     $this->object->setServiceName('Invoice');
     $this->setExpectedException('PayPal\\Exception\\PPConnectionException');
     $req = new PPRequest(new MockNVPClass(), "NV");
     $this->object->makeRequest('GetInvoiceDetails', $req);
 }
Beispiel #2
0
 /**
  * @test
  */
 public function testSetServiceName()
 {
     $this->assertEquals('AdaptiveAccounts', $this->object->serviceName);
     $this->object->setServiceName('Invoice');
     $this->assertEquals('Invoice', $this->object->serviceName);
 }