You are here

public function JSONExporterTest::testDateTimeObjectHandling in Loft Data Grids 7.2

File

vendor/aklump/loft_data_grids/tests/phpunit/JSONExporterTest.php, line 20
Tests for the JSONExporter class

Class

JSONExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testDateTimeObjectHandling() {
  $this
    ->assertDateHandlerWorks(function ($date) {
    return json_encode(array(
      'date' => $date,
    ));
  });
}