public function testGetContent() { $now = new \DateTime(); $now->setTimezone($this->UTC); $object = new UTCTime(); $content = $object->getContent(); $this->assertTrue($content instanceof \DateTime); $this->assertEquals($now->format(DATE_RFC3339), $content->format(DATE_RFC3339)); $timeString = '2012-09-23 20:27'; $dateTime = new \DateTime($timeString, $this->UTC); $object = new UTCTime($timeString); $content = $object->getContent(); $this->assertTrue($content instanceof \DateTime); $this->assertEquals($dateTime->format(DATE_RFC3339), $content->format(DATE_RFC3339)); }