php-src/Zend/tests/bug62892.phpt
2018-10-14 19:45:12 +02:00

22 lines
351 B
PHP

--TEST--
Bug #62892 (ReflectionClass::getTraitAliases crashes on importing trait methods as private)
--FILE--
<?php
trait myTrait {
public function run() {}
}
class myClass {
use myTrait {
MyTrait::run as private;
}
}
$class = new \ReflectionClass('myClass');
var_dump($class->getTraitAliases());
?>
--EXPECT--
array(0) {
}