You are here

public function XMLExporterTest::testDateTimeObjectHandling in Loft Data Grids 7.2

File

vendor/aklump/loft_data_grids/tests/phpunit/XMLExporterTest.php, line 13
Tests for the XMLExporter class

Class

XMLExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testDateTimeObjectHandling() {
  $this
    ->assertDateHandlerWorks(function ($date) {
    return '<?xml version="1.0"?>
<data><page id="0"><record id="0"><date>' . $date . '</date></record></page></data>
';
  });
}