public function CSVExporterTest::testHeadersAnotherWay in Loft Data Grids 7.2
File
- vendor/
aklump/ loft_data_grids/ tests/ phpunit/ CSVExporterTest.php, line 151 - Tests for the CSVExporter class
Class
Namespace
AKlump\LoftDataGridsCode
public function testHeadersAnotherWay() {
$data = new ExportData();
$data
->add('do', 1)
->next();
$data
->add('re', 2)
->next();
$data
->add('mi', 3)
->next();
$exporter = new CSVExporter($data);
$control = array(
'do',
're',
'mi',
);
$control = array_combine($control, $control);
$this
->assertSame($control, $exporter
->getHeader());
}