1--TEST--
2Request #38992 (invoke() and invokeArgs() static method calls should match)
3--FILE--
4<?php
5class MyClass
6{
7    public static function doSomething()
8    {
9        echo "Did it!\n";
10    }
11}
12
13$r = new ReflectionMethod('MyClass', 'doSomething');
14$r->invoke('WTF?');
15$r->invokeArgs('WTF?', array());
16?>
17===DONE===
18--EXPECTF--
19Warning: ReflectionMethod::invoke() expects parameter 1 to be object, string given in %s%erequest38992.php on line %d
20
21Warning: ReflectionMethod::invokeArgs() expects parameter 1 to be object, string given in %s%erequest38992.php on line %d
22===DONE===
23