dis-bench / src /php /php-src /Zend /tests /enum /backed-tryFrom-casing.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
264 Bytes
--TEST--
BackedEnum::tryFrom() casing in reflection
--FILE--
<?php
enum Foo: string {}
$reflectionEnum = new ReflectionEnum(Foo::class);
$reflectionMethod = $reflectionEnum->getMethod('tryFrom');
echo $reflectionMethod->getName() . "\n";
?>
--EXPECT--
tryFrom