Exemple #1
0
 /**
  * Test getCreditCardRejectSpecificDateXML using a date with no data.
  */
 public function testReportLinkgetCreditCardRejectSpecificDateXMLNoData()
 {
     $iats = new ReportLink(self::$agentCode, self::$password);
     // Use a distant time in the future.
     $time = mktime(0, 0, 0, 1, 1, 2050);
     $request = array('date' => $iats->getFormattedDate($time), 'customerIPAddress' => '');
     $response = $iats->getCreditCardRejectSpecificDateXML($request);
     $this->assertEquals('No data returned for this date', $response);
 }