summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/get_declared_traits_002.phpt
blob: 74fdcc40824426c624e9e5e9836f72e65cfa6f48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Testing get_declared_traits() inside namespace
--FILE--
<?php

namespace test {
	class a { }
	interface b { }
	trait c { }
	abstract class d { }
	final class e { }
	var_dump(get_declared_traits());
}

?>
--EXPECT--
array(1) {
  [0]=>
  string(6) "test\c"
}