publicfunctiontestGetAllowedValuesThrowsOnNoConfiguredValue() { $this->expectException(NoConfigurationException::class); $this->expectExceptionMessage('No allowed values were set for the "foo" option.'); $resolver = newOptionsResolver(); $resolver->setDefined($option = 'foo');