summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_isInternal_basic.phpt
blob: 7d7e61335d990a0e795fa7fd6c789be60977170c (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());
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(false)