mirror of
https://github.com/php/php-src.git
synced 2025-01-25 05:04:20 +08:00
21 lines
337 B
PHP
21 lines
337 B
PHP
--TEST--
|
|
Tests some parts of ReflectionClass behavior for traits
|
|
--FILE--
|
|
<?php
|
|
|
|
trait T {}
|
|
|
|
$r = new ReflectionClass('T');
|
|
var_dump(Reflection::getModifierNames($r->getModifiers()));
|
|
var_dump($r->isAbstract());
|
|
var_dump($r->isInstantiable());
|
|
var_dump($r->isCloneable());
|
|
|
|
?>
|
|
--EXPECT--
|
|
array(0) {
|
|
}
|
|
bool(false)
|
|
bool(false)
|
|
bool(false)
|