You are here

function CSVExporterTest::testHeaders in Loft Data Grids 6.2

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

File

vendor/aklump/loft_data_grids/tests/CSVExporterTest.php, line 83
Tests for the CSVExporter class

Class

CSVExporterTest

Namespace

AKlump\LoftDataGrids

Code

function testHeaders() {
  $subject = $this->records[0];
  $return = $this->exporter
    ->getHeader();
  $this
    ->assertSame(array_combine(array_keys($subject), array_keys($subject)), $return);
}