TestReflection::invoke
Helper method that invokes a protected or private method in a class by reflection.
Example usage: $this->assertTrue(TestReflection::invoke('methodName', $this->object, 123));
Signature
Parameters
-
$object
- The object on which to invoke the method.
-
$methodName
- The name of the method to invoke.
Returns
- mixed