function XLSExporterTest::__construct in Loft Data Grids 6.2
File
- vendor/
aklump/ loft_data_grids/ tests/ XLSExporterTest.php, line 103 - Tests for the XLSExporter class
Class
Namespace
AKlump\LoftDataGridsCode
function __construct() {
$this->data = new ExportData();
$this->records[0] = array(
'Order No.' => '1181',
'Transaction Date' => '11/6/13',
'Customer Name' => 'Hope, Bob',
'Customer Billing Address' => '22255 King Street Apt. 1Z',
'Customer Billing City' => 'Honolulu',
'Customer Billing State' => 'HI',
'Customer Billing Zip' => '96813',
'Customer Billing Country' => 'US',
'California Taxed Purchase Amount' => 0,
'Domestic Purchase Amount' => 20,
'International Purchase Amount' => 0,
'Order Status' => 'Completed',
);
foreach ($this->records[0] as $key => $value) {
$this->data
->add($key, $value);
}
$this->data
->next();
$this->exporter = new XLSXExporter($this->data);
}