blob: bb9e0e8bd191fbac9d8d05adcc1f811c620d45ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--TEST--
ReflectionObject::isUserDefined() - basic function test
--FILE--
<?php
class C {
}
$r1 = new ReflectionObject(new stdClass);
$r2 = new ReflectionObject(new ReflectionClass('C'));
$r3 = new ReflectionObject(new ReflectionProperty('Exception', 'message'));
$r4 = new ReflectionObject(new Exception);
$r5 = new ReflectionObject(new C);
var_dump($r1->isUserDefined(), $r2->isUserDefined(), $r3->isUserDefined(),
$r4->isUserDefined(), $r5->isUserDefined());
?>
--EXPECTF--
bool(false)
bool(false)
bool(false)
bool(false)
bool(true)
|