function XLSExporterTest::testGetPHPExcelColumns in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/aklump/loft_data_grids/tests/XLSExporterTest.php \AKlump\LoftDataGrids\XLSExporterTest::testGetPHPExcelColumns()
File
- vendor/
aklump/ loft_data_grids/ tests/ phpunit/ XLSXExporterTest.php, line 51 - Tests for the XLSExporter class
Class
Namespace
AKlump\LoftDataGridsCode
function testGetPHPExcelColumns() {
$obj = $this->exporter2;
$subject = array_fill_keys(array_keys($this->records2[0]), null);
$current = array(
65,
);
$chr =& $current[count($current) - 1];
foreach (array_keys($subject) as $header_key) {
$subject[$header_key] = chr($chr++);
}
$this
->assertSame($subject, $obj
->getPHPExcelColumns());
// @todo this will not test past L; make it really work!
}