/** * Test date time serialization. */ public function testSerializeDateTime() { $decoded = json_decode(json_encode(new DateTimeValue()), true); $this->assertInternalType('integer', $decoded); $this->assertNotEmpty($decoded); $this->assertEquals($this->reference->getTimestamp(), json_decode(json_encode(new DateTimeValue()), true)); }