php-src/Zend/tests/traits/get_declared_traits_002.phpt
2020-02-03 22:52:20 +01:00

21 lines
289 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"
}