1--TEST-- 2ReflectionObject::getConstructor() - invalid params 3--FILE-- 4<?php 5class C {} 6$rc = new ReflectionObject(new C); 7var_dump($rc->getConstructor(null)); 8var_dump($rc->getConstructor('X')); 9var_dump($rc->getConstructor(true)); 10var_dump($rc->getConstructor(array(1,2,3))); 11?> 12--EXPECTF-- 13Warning: ReflectionClass::getConstructor() expects exactly 0 parameters, 1 given in %s on line %d 14NULL 15 16Warning: ReflectionClass::getConstructor() expects exactly 0 parameters, 1 given in %s on line %d 17NULL 18 19Warning: ReflectionClass::getConstructor() expects exactly 0 parameters, 1 given in %s on line %d 20NULL 21 22Warning: ReflectionClass::getConstructor() expects exactly 0 parameters, 1 given in %s on line %d 23NULL 24