public function testGetSetCompletedDateEmptyString() { $this->assertEmpty($this->task->getDateAsString('completedDate')); $expectedDate = new \DateTime(); $this->task->setDefaultDateFromString('', 'completedDate'); $returnedDate = $this->task->getCompletedDate(); $this->assertEquals($expectedDate->format(OPGDateFormat::getDateTimeFormat()), $returnedDate->format(OPGDateFormat::getDateTimeFormat())); }