All pastes #160252 Raw Edit

Someone

public text v1 · immutable
·published 2006-09-04 00:20 UTC
rendered paste body
class CC_DateTime {
	protected $value;

	public function __construct() {
		$this->type = 'DateTime';
		$this->value = new Date();
	}

	public function getValue() {
		$this->value->getDate(DATE_FORMAT_ISO_EXTENDED);
	}

}

class CC_DateTimeTest extends UnitTestCase {
	public function testGettingDateReturnsISO8601Format() {
		$mydate = new CC_DateTime();
		$this->assertEqual('', $mydate->getValue());
	}

}