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