public function testShouldProperlyEncodeToJson() { $this->assertEquals('"' . (string) $this->mongoDate . '"', json_encode($this->dateTime)); }