/** * Test getCreditCardPaymentBoxRejectCSV. */ public function testReportLinkgetCreditCardPaymentBoxRejectCSV() { $iats = new ReportLink(self::$agentCode, self::$password); $fromTime = mktime(0, 0, 0, date('n'), date('j'), date('Y')); $toTime = mktime(23, 59, 59, date('n'), date('j'), date('Y')); $request = array('fromDate' => $iats->getFormattedDate($fromTime), 'toDate' => $iats->getFormattedDate($toTime), 'customerIPAddress' => ''); $response = $iats->getCreditCardPaymentBoxRejectCSV($request); $this->assertStringStartsWith('Transaction ID,Invoice Number,Date Time', $response); }