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