/**
  * Create the Method class instance that represents the constructor of the class
  * under test.
  *
  * @param PhpClass $class
  *
  * @return Method|null
  */
 public function createConstructor(PhpClass $class)
 {
     $classUnderTest = $class->getReflectionClass();
     $reflectionMethod = $classUnderTest->getConstructor();
     if (!$reflectionMethod) {
         return null;
     }
     $method = new Method($class, $reflectionMethod);
     return $method;
 }