public function testGetCreatedDate() { $expected = '01/01/2014 00:00:00'; $expectedDate = \DateTime::createFromFormat(DateFormat::getDateTimeFormat(), $expected); $this->assertTrue($this->document->setCreatedDate($expectedDate) instanceof Document); $this->assertEquals($expectedDate, $this->document->getCreatedDate()); $this->assertEquals($expected, $this->document->getDateTimeAsString('createdDate')); }