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