public function testGetSetCreatedDateEmptyString() { $expectedDate = new \DateTime(); $this->correspondence->setDateTimeFromString(null, 'createdDate'); $returnedDate = $this->correspondence->getCreatedDate(); $this->assertEquals($expectedDate->format(OPGDateFormat::getDateTimeFormat()), $returnedDate->format(OPGDateFormat::getDateTimeFormat())); }