You are here

function XLSExporterTest::testGetPHPExcelColumns in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/aklump/loft_data_grids/tests/phpunit/XLSXExporterTest.php \AKlump\LoftDataGrids\XLSExporterTest::testGetPHPExcelColumns()

File

vendor/aklump/loft_data_grids/tests/XLSExporterTest.php, line 35
Tests for the XLSExporter class

Class

XLSExporterTest

Namespace

AKlump\LoftDataGrids

Code

function testGetPHPExcelColumns() {
  $obj = $this->exporter;
  $subject = array_fill_keys(array_keys($this->records[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!
}