public function testGetSetActiveDateEmptyString() { $expectedDate = OPGDateFormat::createDateTime(date(OPGDateFormat::getDateFormat() . ' 00:00:00')); $this->assertEmpty($this->task->getDateAsString('activeDate')); $this->task->setDateTimeFromString($expectedDate->format(OPGDateFormat::getDateTimeFormat()), 'activeDate'); $returnedDate = $this->task->getActiveDate(); $this->assertEquals($expectedDate->format(OPGDateFormat::getDateTimeFormat()), $returnedDate->format(OPGDateFormat::getDateTimeFormat())); }