/** * Tests the exception trigger in the getOne request method * @test * @expectedException \Paymill\Services\PaymillException * @expectedExceptionMessage Undefined Error. This should not happen! */ public function getOneExceptionTest() { $outputArray = array(); $outputArray['header']['status'] = 500; $this->_getCurlMock($this->_client->getServiceResource() . $this->_client->getId(), $this->_client->parameterize("getOne"), "GET", $outputArray); $this->_client = $this->_request->getOne($this->_client); }
/** * @test * @codeCoverageIgnore */ public function createChecksum() { $result = $this->_service->getOne($this->_model); $this->assertInstanceOf('Paymill\\Models\\Response\\Checksum', $result, var_export($result, true)); return $result; }