public function testDateTimeExporting() { $type = new DateTimeType(); $value = new DateTime('21.11.1984 17:21:00'); $this->assertEquals((object) array('date' => $value->getTimestamp(), 'timezone' => date_default_timezone_get()), $this->objectExporter->walk($value, $type)); }