1--TEST--
2ReflectionClass::hasConstant() - error cases
3--CREDITS--
4Robin Fernandes <robinf@php.net>
5Steve Seear <stevseea@php.net>
6--FILE--
7<?php
8class C {
9    const myConst = 1;
10}
11
12$rc = new ReflectionClass("C");
13echo "Check invalid params:\n";
14var_dump($rc->hasConstant(null));
15var_dump($rc->hasConstant(1));
16var_dump($rc->hasConstant(1.5));
17var_dump($rc->hasConstant(true));
18?>
19--EXPECT--
20Check invalid params:
21bool(false)
22bool(false)
23bool(false)
24bool(false)
25