summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_getModifiers_basic.phpt
blob: 65f23c935f91e6b9e875c45241e157db80bddaf5 (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
--TEST--
ReflectionClass::getModifiers()
--CREDITS--
Felix De Vliegher <felix.devliegher@gmail.com>
--FILE--
<?php

class a {}
abstract class b {}
final class c {}
interface d {}
class e implements d {}
interface f extends d {}
class g extends b {}

function dump_modifiers($class) {
	$obj = new ReflectionClass($class);
	var_dump($obj->getModifiers());
}

dump_modifiers('a');
dump_modifiers('b');
dump_modifiers('c');
dump_modifiers('d');
dump_modifiers('e');
dump_modifiers('f');
dump_modifiers('g');

?>
--EXPECT--
int(0)
int(32)
int(64)
int(128)
int(524288)
int(524416)
int(0)