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