2008-11-18 15:36:48 +00:00
|
|
|
--TEST--
|
|
|
|
ReflectionClass::getMethods() - invalid arguments
|
|
|
|
--CREDITS--
|
|
|
|
Robin Fernandes <robinf@php.net>
|
|
|
|
Steve Seear <stevseea@php.net>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$rc = new ReflectionClass("ReflectionClass");
|
|
|
|
echo "\nTest invalid arguments:";
|
|
|
|
$rc->getMethods('X');
|
|
|
|
$rc->getMethods('X', true);
|
|
|
|
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
|
|
|
Test invalid arguments:
|
2014-12-14 18:20:23 +00:00
|
|
|
Warning: ReflectionClass::getMethods() expects parameter 1 to be integer, string given in %s on line 4
|
2008-11-18 15:36:48 +00:00
|
|
|
|
|
|
|
Warning: ReflectionClass::getMethods() expects at most 1 parameter, 2 given in %s on line 5
|