1--TEST-- 2ReflectionClass::isInstance() - invalid params 3--FILE-- 4<?php 5class X {} 6 7$rc = new ReflectionClass("X"); 8$instance = new X; 9 10var_dump($rc->isInstance()); 11var_dump($rc->isInstance($instance, $instance)); 12var_dump($rc->isInstance(1)); 13var_dump($rc->isInstance(1.5)); 14var_dump($rc->isInstance(true)); 15var_dump($rc->isInstance('X')); 16var_dump($rc->isInstance(null)); 17 18?> 19--EXPECTF-- 20Warning: ReflectionClass::isInstance() expects exactly 1 parameter, 0 given in %s on line 7 21NULL 22 23Warning: ReflectionClass::isInstance() expects exactly 1 parameter, 2 given in %s on line 8 24NULL 25 26Warning: ReflectionClass::isInstance() expects parameter 1 to be object, %s given in %s on line 9 27NULL 28 29Warning: ReflectionClass::isInstance() expects parameter 1 to be object, double given in %s on line 10 30NULL 31 32Warning: ReflectionClass::isInstance() expects parameter 1 to be object, boolean given in %s on line 11 33NULL 34 35Warning: ReflectionClass::isInstance() expects parameter 1 to be object, string given in %s on line 12 36NULL 37 38Warning: ReflectionClass::isInstance() expects parameter 1 to be object, null given in %s on line 13 39NULL 40