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