public function testDateCanOutputDatesInOldFormats() { Date::setDateFormat(Date::DATE_ANSIC); $dateHeader = new Date(); $dateHeader->setDate('Sun, 06 Nov 1994 08:49:37 GMT'); $this->assertEquals('Date: Sun Nov 6 08:49:37 1994', $dateHeader->toString()); }
public function testDateToStringReturnsHeaderFormattedString() { $this->markTestIncomplete('Date needs to be completed'); $dateHeader = new Date(); // @todo set some values, then test output $this->assertEmpty('Date: xxx', $dateHeader->toString()); }