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