public function testSetValidValueThrowsNoException()
 {
     $configuration = new Configuration();
     try {
         foreach (VendorExtensionSeverityLevel::getValidValues() as $validValue) {
             $configuration->setVendorExtensionSeverityLevel($validValue);
         }
     } catch (\InvalidArgumentException $invalidArgumentException) {
         $this->fail('Unexpected InvalidArgumentException for $configuration->setVendorExtensionSeverityLevel(\'' . $validValue . '\')');
     }
 }
 /**
  * 
  * @param string $flag
  * @return Configuration
  * @throws \InvalidArgumentException
  */
 public function setFlag($flag)
 {
     if (!Flags::isValid($flag)) {
         throw new \InvalidArgumentException('Invalid flag, must be one of [' . implode(', ', VendorExtensionSeverityLevel::getValidValues()) . ']', 2);
     }
     $this->flags[$flag] = true;
     return $this;
 }
 public function testAllInvalidValuesAreInvalid()
 {
     foreach (array('foo', 'bar') as $inValidValue) {
         $this->assertFalse(VendorExtensionSeverityLevel::isValid($inValidValue));
     }
 }