forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReflectionClass_getDefaultProperties_002.phpt
44 lines (36 loc) · 1.48 KB
/
ReflectionClass_getDefaultProperties_002.phpt
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
--TEST--
ReflectionClass::getDefaultProperties(), ReflectionClass::getStaticProperties() - wrong param count
--CREDITS--
Robin Fernandes <[email protected]>
Steve Seear <[email protected]>
--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: ReflectionClass::getDefaultProperties() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Warning: ReflectionClass::getDefaultProperties() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Warning: ReflectionClass::getDefaultProperties() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Warning: ReflectionClass::getDefaultProperties() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Warning: ReflectionClass::getStaticProperties() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Warning: ReflectionClass::getStaticProperties() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Warning: ReflectionClass::getStaticProperties() expects exactly 0 parameters, 1 given in %s on line %d
NULL
Warning: ReflectionClass::getStaticProperties() expects exactly 0 parameters, 1 given in %s on line %d
NULL