/**
  * @covers \CL\Decorator\MagicObjectDecorator::__call
  */
 public function testOriginalGettersSetters()
 {
     $this->assertEquals($this->userDecoratorMock->{'getDateOfBirth'}(), $this->userMock->getDateOfBirth(), 'original method geDateOfBirth should be callable');
     $this->assertEquals($this->userDecoratorMock->{'getDateOfBirth'}(), $this->userDecoratorMock->{'dateOfBirth'}(), 'dateOfBirth should be callable if getDateOfBirth exists');
     $this->userDecoratorMock->{'setDateOfBirth'}(new \DateTime('-50 years'));
     $this->assertEquals(50, $this->userDecoratorMock->getAge());
 }
 protected function setUp()
 {
     $this->userMock = new UserMock();
     $this->userMock->setDateOfBirth(new \DateTime('-27 years'));
     $this->userDecorator = new UserDecoratorMock();
 }