php-src/Zend/tests/enum/backed-tryFrom-casing.phpt
Ilija Tovilo 269c8dac1d
Implement enums
RFC: https://wiki.php.net/rfc/enumerations

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

Closes GH-6489.
2021-03-17 19:08:03 +01:00

15 lines
264 B
PHP

--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