public function testToDate() { $this->assertEquals(date('Y-m-d', strtotime($this->datetime)), $this->o->toDate()); $format = 'Y-m-dTH:i:sP'; $this->assertEquals(date($format, strtotime($this->datetime)), $this->o->toDate($format)); }