| 1 | <?php |
||
| 7 | abstract class BaseTestCase extends TestCase |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Call protected/private method of a class. |
||
| 12 | * |
||
| 13 | * @param object &$object Instantiated object that we will run method on. |
||
| 14 | * @param string $methodName Method name to call |
||
| 15 | * @param array $parameters Array of parameters to pass into method. |
||
| 16 | * |
||
| 17 | * @return mixed Method return. |
||
| 18 | */ |
||
| 19 | public function invokeMethod(&$object, $methodName, array $parameters = array()) |
||
| 27 | |||
| 28 | } |
||
| 29 |