mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
19 lines
513 B
Plaintext
19 lines
513 B
Plaintext
|
--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
|