|
|
1.1 misho 1: --TEST--
2: ReflectionClass::getConstant
3: --SKIPIF--
4: <?php extension_loaded('reflection') or die('skip'); ?>
5: --FILE--
6: <?php
7: class Foo {
8: const c1 = 1;
9: }
10: $class = new ReflectionClass("Foo");
11: var_dump($class->getConstant("c1"));
12: var_dump($class->getConstant("c2"));
13: ?>
14: --EXPECT--
15: int(1)
16: bool(false)