summaryrefslogtreecommitdiff
path: root/Zend/tests/bug62892.phpt
blob: e6b0e60ff3c0c9ac4d2bb68485a21fd532da35a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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());

?>
--EXPECTF--
array(0) {
}