コード例 #1
0
 public function testCompletePurchaseFailure()
 {
     $response = new CompletePurchaseresponse($this->getMockRequest(), array('transStatus' => 'N', 'transId' => null, 'rawAuthMessage' => 'Declined'));
     $this->assertFalse($response->isSuccessful());
     $this->assertFalse($response->isCancelled());
     $this->assertFalse($response->isRedirect());
     $this->assertNull($response->getTransactionReference());
     $this->assertSame('Declined', $response->getMessage());
 }