mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
22 lines
352 B
PHP
22 lines
352 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) {
|
|
}
|