mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
21 lines
266 B
PHP
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"
|
|
}
|