--TEST-- ReflectionObject::isSubclassOf() - bad arguments --CREDITS-- Robin Fernandes Steve Seear --FILE-- isSubclassOf(); } catch (ArgumentCountError $e) { echo $e->getMessage() . "\n"; } try { $rc->isSubclassOf('C', 'C'); } catch (ArgumentCountError $e) { echo $e->getMessage() . "\n"; } try { $rc->isSubclassOf(null); } catch (ReflectionException $e) { echo $e->getMessage() . "\n"; } try { $rc->isSubclassOf('ThisClassDoesNotExist'); } catch (ReflectionException $e) { echo $e->getMessage() . "\n"; } try { $rc->isSubclassOf(2); } catch (ReflectionException $e) { echo $e->getMessage() . "\n"; } ?> --EXPECTF-- Test bad arguments: ReflectionClass::isSubclassOf() expects exactly 1 argument, 0 given ReflectionClass::isSubclassOf() expects exactly 1 argument, 2 given Deprecated: ReflectionClass::isSubclassOf(): Passing null to parameter #1 ($class) of type ReflectionClass|string is deprecated in %s on line %d Class "" does not exist Class "ThisClassDoesNotExist" does not exist Class "2" does not exist