php-src/ext/reflection/reflectionclass_for_traits.phpt
Nikita Popov 240fbd36f1 Add test to ensure ReflectionClass works correctly with traits
Some of these were not working correctly before Guilherme's patch.
Another was broken by it and is fixed in this commit as well.
2015-02-12 23:25:09 +01:00

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)