/** * @covers ::getEndpoint */ public function testInvalidGetEndpoint() { $request = new CaptureRequest($this->getHttpClient(), $this->getHttpRequest()); $this->setExpectedException('Omnipay\\Common\\Exception\\InvalidRequestException', 'The transactionReference parameter is required'); $request->getEndpoint(); }