Exemple #1
0
 /**
  * Test getACHEFTApprovedSpecificDateXML.
  */
 public function testReportLinkgetACHEFTApprovedSpecificDateXML()
 {
     $iats = new ReportLink(self::$agentCode, self::$password);
     $time = strtotime('+1 day');
     $request = array('date' => $iats->getFormattedDate($time), 'customerIPAddress' => '');
     $response = $iats->getACHEFTApprovedSpecificDateXML($request);
     $this->assertEquals('No data returned for this date', $response);
 }
Exemple #2
0
 /**
  * Test getACHEFTApprovedSpecificDateXML.
  */
 public function testReportLinkgetACHEFTApprovedSpecificDateXML()
 {
     $iats = new ReportLink(self::$agentCode, self::$password);
     $time = mktime(0, 0, 0, date('n'), date('j'), date('Y'));
     $request = array('date' => $iats->getFormattedDate($time), 'customerIPAddress' => '');
     $response = $iats->getACHEFTApprovedSpecificDateXML($request);
     // ACH / EFT transactions are never processed when using the
     // test server, so a successful request is made without returning report data.
     $this->assertEquals('No data returned for this date', $response);
 }