1--TEST-- 2ReflectionObject::isSubclassOf() - invalid params 3--FILE-- 4<?php 5class A {} 6$ro = new ReflectionObject(new A); 7 8var_dump($ro->isSubclassOf()); 9var_dump($ro->isSubclassOf('A',5)); 10var_dump($ro->isSubclassOf('X')); 11 12?> 13--EXPECTF-- 14Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 0 given in %s on line 5 15NULL 16 17Warning: ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given in %s on line 6 18NULL 19 20Fatal error: Uncaught exception 'ReflectionException' with message 'Class X does not exist' in %s:7 21Stack trace: 22#0 %s(7): ReflectionClass->isSubclassOf('X') 23#1 {main} 24 thrown in %s on line 7 25