示例#1
0
 /**
  * Set a Response Code
  *
  * This is an internal function that will set the response code
  * and then attempt to lookup more information from the transaction
  * response code class.
  */
 private function setCode($code)
 {
     $this->code = $code;
     // set the details for this response, generated from the response code
     $this->details = TransactionResponseCode::code($code);
 }
示例#2
0
 /**
  * Test an Invalid Response code
  */
 public function testUnknownResponseCodeThrowsException()
 {
     $code = TransactionResponseCode::code('foo');
     $this->assertEquals('Unknown response code.', $code['message']);
 }