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(null)); 12var_dump($rc->getConstant(1)); 13var_dump($rc->getConstant(1.5)); 14var_dump($rc->getConstant(true)); 15?> 16--EXPECT-- 17Check invalid params: 18bool(false) 19bool(false) 20bool(false) 21bool(false) 22