File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug64239_1.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (10 years, 11 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--TEST--
Bug #64239 (get_class_methods() changed behavior)
--FILE--
<?php
class A {
	use T2 { t2method as Bmethod; }
}

class B extends A {
}

trait T2 {
	public function t2method() {
	}
}
print_r(get_class_methods("A"));
print_r(get_class_methods("B"));
--EXPECT--
Array
(
    [0] => Bmethod
    [1] => t2method
)
Array
(
    [0] => Bmethod
    [1] => t2method
)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>