1--TEST-- 2get_class_methods(): Testing with interface 3--FILE-- 4<?php 5 6interface A { 7 function a(); 8 function b(); 9} 10 11class 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 23new B; 24 25?> 26--EXPECTF-- 27Strict Standards: Redefining already defined constructor for class B in %s on line %d 28array(2) { 29 [0]=> 30 string(1) "a" 31 [1]=> 32 string(1) "b" 33} 34array(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} 44