/**
  * If payment is rejected, final status should be 'failed'
  */
 function testRejectedReturn()
 {
     $init = $this->getDonorTestData('BR');
     $session['Donor']['order_id'] = '123456789';
     $this->setUpRequest($init, $session);
     $gateway = new TestingAstroPayAdapter();
     $gateway->setCurrentTransaction('ProcessReturn');
     $response = array('result' => '8', 'x_amount' => '100.00', 'x_amount_usd' => '42.05', 'x_control' => '706F57BC3E74906B14B1DEB946F027104513797CC62AC0F5107BC98F42D5DC95', 'x_description' => 'Donation to the Wikimedia Foundation', 'x_document' => '32869', 'x_iduser' => '08feb2d12771bbcfeb86', 'x_invoice' => '123456789');
     $gateway->processResponse($response);
     $status = $gateway->getFinalStatus();
     $this->assertEquals(FinalStatus::FAILED, $status);
 }