Annotation of embedaddon/php/Zend/tests/get_class_methods_002.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: get_class_methods(): Testing with interface
! 3: --FILE--
! 4: <?php
! 5:
! 6: interface A {
! 7: function a();
! 8: function b();
! 9: }
! 10:
! 11: class B implements A {
! 12: public function a() { }
! 13: public function b() { }
! 14:
! 15: public function __construct() {
! 16: var_dump(get_class_methods('A'));
! 17: var_dump(get_class_methods('B'));
! 18: }
! 19:
! 20: public function __destruct() { }
! 21: }
! 22:
! 23: new B;
! 24:
! 25: ?>
! 26: --EXPECTF--
! 27: Strict Standards: Redefining already defined constructor for class B in %s on line %d
! 28: array(2) {
! 29: [0]=>
! 30: string(1) "a"
! 31: [1]=>
! 32: string(1) "b"
! 33: }
! 34: array(4) {
! 35: [0]=>
! 36: string(1) "a"
! 37: [1]=>
! 38: string(1) "b"
! 39: [2]=>
! 40: string(11) "__construct"
! 41: [3]=>
! 42: string(10) "__destruct"
! 43: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>