1--TEST-- 2ReflectionClass::getConstant() - bad params 3--FILE-- 4<?php 5class C { 6 const myConst = 1; 7} 8 9$rc = new ReflectionClass("C"); 10echo "Check invalid params:\n"; 11var_dump($rc->getConstant(1)); 12var_dump($rc->getConstant(1.5)); 13var_dump($rc->getConstant(true)); 14?> 15--EXPECT-- 16Check invalid params: 17bool(false) 18bool(false) 19bool(false) 20