1--TEST--
2ReflectionClass::hasConstant()
3--CREDITS--
4Marc Veldman <marc@ibuildings.nl>
5#testfest roosendaal on 2008-05-10
6--FILE--
7<?php
8//New instance of class C - defined below
9$rc = new ReflectionClass("C");
10
11//Check if C has constant foo
12var_dump($rc->hasConstant('foo'));
13
14//C should not have constant bar
15var_dump($rc->hasConstant('bar'));
16
17Class C {
18  const foo=1;
19}
20?>
21--EXPECTF--
22bool(true)
23bool(false)
24