private function parameterToData(InstallerParameter $parameter)
 {
     $data = new stdClass();
     if ($parameter->isRequired()) {
         $data->required = true;
     }
     if (null !== ($default = $parameter->getDefaultValue())) {
         $data->default = $default;
     }
     if ($description = $parameter->getDescription()) {
         $data->description = $description;
     }
     return $data;
 }
 public function testAcceptFlagsNull()
 {
     $parameter = new InstallerParameter('param', null);
     $this->assertSame(0, $parameter->getFlags());
 }