1--TEST-- 2ReflectionClass::getDefaultProperties(), ReflectionClass::getStaticProperties() - wrong param count 3--CREDITS-- 4Robin Fernandes <robinf@php.net> 5Steve Seear <stevseea@php.net> 6--FILE-- 7<?php 8interface I {} 9class C implements I {} 10$rc = new ReflectionClass('C'); 11var_dump($rc->getDefaultProperties(null)); 12var_dump($rc->getDefaultProperties('X')); 13var_dump($rc->getDefaultProperties(true)); 14var_dump($rc->getDefaultProperties(array(1,2,3))); 15var_dump($rc->getStaticProperties(null)); 16var_dump($rc->getStaticProperties('X')); 17var_dump($rc->getStaticProperties(true)); 18var_dump($rc->getStaticProperties(array(1,2,3))); 19 20?> 21--EXPECTF-- 22Warning: ReflectionClass::getDefaultProperties() expects exactly 0 parameters, 1 given in %s on line %d 23NULL 24 25Warning: ReflectionClass::getDefaultProperties() expects exactly 0 parameters, 1 given in %s on line %d 26NULL 27 28Warning: ReflectionClass::getDefaultProperties() expects exactly 0 parameters, 1 given in %s on line %d 29NULL 30 31Warning: ReflectionClass::getDefaultProperties() expects exactly 0 parameters, 1 given in %s on line %d 32NULL 33 34Warning: ReflectionClass::getStaticProperties() expects exactly 0 parameters, 1 given in %s on line %d 35NULL 36 37Warning: ReflectionClass::getStaticProperties() expects exactly 0 parameters, 1 given in %s on line %d 38NULL 39 40Warning: ReflectionClass::getStaticProperties() expects exactly 0 parameters, 1 given in %s on line %d 41NULL 42 43Warning: ReflectionClass::getStaticProperties() expects exactly 0 parameters, 1 given in %s on line %d 44NULL 45