summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_getMethods_002.phpt
blob: b25222563b388d483a217e8101001c018de8140a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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:
Warning: ReflectionClass::getMethods() expects parameter 1 to be long, string given in %s on line 4

Warning: ReflectionClass::getMethods() expects at most 1 parameter, 2 given in %s on line 5