mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
21 lines
289 B
PHP
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"
|
|
}
|