public function testConvertsEnumValuesAccordingToInputCoercionRules()
{
$testEnum = new EnumType(['name' => 'TestColor', 'values' => ['RED' => ['value' => 1], 'GREEN' => ['value' => 2], 'BLUE' => ['value' => 3]]]);
$this->runTestCase($testEnum, 'RED', 1);
$this->runTestCase($testEnum, 'BLUE', 3);
$this->runTestCase($testEnum, '3', Utils::undefined());
$this->runTestCase($testEnum, '"BLUE"', Utils::undefined());
$this->runTestCase($testEnum, 'null', null);
}