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