xref: /PHP-8.0/ext/reflection/tests/022.phpt (revision f8d79582)
1--TEST--
2ReflectionClass::getConstant
3--FILE--
4<?php
5class Foo {
6    const c1 = 1;
7}
8$class = new ReflectionClass("Foo");
9var_dump($class->getConstant("c1"));
10var_dump($class->getConstant("c2"));
11?>
12--EXPECT--
13int(1)
14bool(false)
15