コード例 #1
0
ファイル: TransactionResponse.php プロジェクト: petflow/litle
 /**
  * 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
ファイル: ResponseCodeTest.php プロジェクト: petflow/litle
 /**
  * Test an Invalid Response code
  */
 public function testUnknownResponseCodeThrowsException()
 {
     $code = TransactionResponseCode::code('foo');
     $this->assertEquals('Unknown response code.', $code['message']);
 }