public function testGetSetDateCreated() { $expected = new \DateTime(); $this->assertNotEmpty($this->instance->getDateCreated()); $this->assertTrue($this->instance->getDateCreated() instanceof \DateTime); $this->assertTrue($this->instance->setDateCreated($expected) instanceof Person); $this->assertEquals($expected, $this->instance->getDateCreated()); }