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-- 27array(2) { 28 [0]=> 29 string(1) "a" 30 [1]=> 31 string(1) "b" 32} 33array(4) { 34 [0]=> 35 string(1) "a" 36 [1]=> 37 string(1) "b" 38 [2]=> 39 string(11) "__construct" 40 [3]=> 41 string(10) "__destruct" 42} 43