1--TEST--
2BackedEnum::tryFrom() casing in reflection
3--FILE--
4<?php
5
6enum Foo: string {}
7
8$reflectionEnum = new ReflectionEnum(Foo::class);
9$reflectionMethod = $reflectionEnum->getMethod('tryFrom');
10
11echo $reflectionMethod->getName() . "\n";
12
13?>
14--EXPECT--
15tryFrom
16