summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/021.phpt
blob: fefcf34e78c050fc4b96011748be2fca53a762a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
ReflectionClass::hasConstant
--FILE--
<?php
class Foo {
    const c1 = 1;
}
$class = new ReflectionClass("Foo");
var_dump($class->hasConstant("c1"));
var_dump($class->hasConstant("c2"));
?>
--EXPECT--
bool(true)
bool(false)