public function testGetDateFallback() { $data = array('meta' => array('SERVER' => array())); $profile = new Xhgui_Profile($data); $result = $profile->getDate(); $this->assertInstanceOf('DateTime', $result); }