/**
  * @param string $name The name of the current property.
  *
  * @return PropertyDescriptor
  */
 protected function whenFixtureHasPropertyInParentClassWithSameName($name)
 {
     $result = new PropertyDescriptor();
     $result->setName($name);
     $parent = new ClassDescriptor();
     $parent->getProperties()->set($name, $result);
     $class = new ClassDescriptor();
     $class->setParent($parent);
     $this->fixture->setParent($class);
     return $result;
 }