public function testToISO8601() { $this->assertEquals(date('c', strtotime($this->datetime)), $this->o->toISO8601()); $o = new DateTime('2012-05-02T00:00:00+00:00'); $this->assertEquals('2012-05-02T00:00:00Z', $o->toISO8601()); }