Annotation of embedaddon/php/Zend/tests/traits/get_declared_traits_003.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing get_declared_classes() and get_declared_traits()
3: --FILE--
4: <?php
5:
6: class a { }
7: interface b { }
8: trait c { }
9: abstract class d { }
10: final class e { }
11: var_dump(get_declared_classes());
12: var_dump(get_declared_traits());
13:
14: ?>
15: --EXPECTF--
16: %astring(1) "a"
17: [%d]=>
18: string(1) "d"
19: [%d]=>
20: string(1) "e"
21: }
22: array(1) {
23: [0]=>
24: string(1) "c"
25: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>