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