/** * @test */ public function shouldSetDeathDay() { $person = new Person(); $person->setDeathday('2013-12-12'); $this->assertInstanceOf('\\DateTime', $person->getDeathday()); }