php-src/Zend/tests/traits/get_declared_traits_002.phpt
2010-05-06 15:49:58 +00:00

21 lines
266 B
PHP

--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"
}