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