php-src/Zend/tests/traits/get_declared_traits_002.phpt
2016-09-22 12:32:37 +02:00

20 lines
271 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());
}
?>
--EXPECTF--
array(%d) {%A
[%d]=>
string(6) "test\c"
}