Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * @test
  * @codeCoverageIgnore
  */
 public function createChecksum()
 {
     $result = $this->_service->getOne($this->_model);
     $this->assertInstanceOf('Paymill\\Models\\Response\\Checksum', $result, var_export($result, true));
     return $result;
 }