getMethods() public method

Replacement for the original getMethods() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
public getMethods ( integer $filter = null ) : MethodReflection
$filter integer A filter mask
return MethodReflection Method reflection objects of the methods in this class
コード例 #1
0
 /**
  * @test
  */
 public function getMethodsReturnsArrayWithNumericIndex()
 {
     $class = new ClassReflection(__CLASS__);
     $methods = $class->getMethods();
     foreach (array_keys($methods) as $key) {
         $this->assertInternalType('integer', $key, 'The index was not an integer.');
     }
 }