Files
php-src/ext/reflection/tests/ReflectionConstant_inexistent.phpt
Ilija Tovilo e23440e5a6 Implement reflection constant
Fixes GH-13570
Closes GH-13669
2024-04-17 22:53:09 +02:00

15 lines
255 B
PHP

--TEST--
ReflectionConstant on inexistent constant
--FILE--
<?php
try {
new \ReflectionConstant('C');
} catch (Exception $e) {
echo get_class($e) . ': ' . $e->getMessage() . "\n";
}
?>
--EXPECT--
ReflectionException: Constant "C" does not exist