public function testSetDateByString() { // test that something like "tomorrow" works $tomorrow = qCal_Date::factory("tomorrow"); // coming soon! // $this->assertEqual($tomorrow->getDay()); }
/** * This converts to a qCal_Date for internal storage */ protected function doCast($value) { $date = qCal_Date::factory($value); return $date; }
/** * Test that date data is handled right */ public function testRawDate() { $value = new qCal_Value_Date('2009-04-23'); $this->assertEqual($value->getValue(), qCal_Date::factory('2009-04-23')); }