diff options
Diffstat (limited to 'Zend/tests/bug64239_1.phpt')
-rw-r--r-- | Zend/tests/bug64239_1.phpt | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/Zend/tests/bug64239_1.phpt b/Zend/tests/bug64239_1.phpt index fe58cbd767..10d44c1817 100644 --- a/Zend/tests/bug64239_1.phpt +++ b/Zend/tests/bug64239_1.phpt @@ -3,20 +3,26 @@ Bug #64239 (get_class_methods() changed behavior) --FILE-- <?php class A { - public function test() { $this->backtrace(); } -} -class B { use T2 { t2method as Bmethod; } } + +class B extends A { +} + trait T2 { public function t2method() { } } -var_dump(get_class_methods("B")); +print_r(get_class_methods("A")); +print_r(get_class_methods("B")); --EXPECT-- -array(2) { - [0]=> - string(7) "bmethod" - [1]=> - string(8) "t2method" -} +Array +( + [0] => Bmethod + [1] => t2method +) +Array +( + [0] => Bmethod + [1] => t2method +) |