mirror of
https://github.com/php/php-src.git
synced 2024-10-03 07:46:12 +00:00
21 lines
337 B
Plaintext
21 lines
337 B
Plaintext
|
--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)
|