protected function setUp() { $this->userMock = new UserMock(); $this->userMock->setDateOfBirth(new \DateTime('-27 years')); $this->userDecoratorMock = new UserMagicDecoratorMock(); $this->userDecoratorMock->inject($this->userMock); }