PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/zend/good/ext/reflection/tests/bug64239.php

http://github.com/facebook/hiphop-php
PHP | 18 lines | 17 code | 1 blank | 0 comment | 0 complexity | f858eec654552b06890be8c5e61797c1 MD5 | raw file
 1<?hh
 2class A {
 3    use T2 { t2method as Bmethod; }
 4}
 5trait T2 {
 6    public function t2method() {
 7    }
 8}
 9
10class B extends A{
11}
12<<__EntryPoint>> function main(): void {
13$obj = new ReflectionClass("B");
14print_r($obj->getMethods());
15print_r(($method = $obj->getMethod("Bmethod")));
16var_dump($method->getName());
17var_dump($method->getShortName());
18}