protected $mockObject;
protected $adhocHooks;
+ protected $civiModules = NULL;
// Call this in CiviUnitTestCase::setUp()
function reset() {
function invoke($numParams,
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5,
$fnSuffix) {
+
$params = array( &$arg1, &$arg2, &$arg3, &$arg4, &$arg5);
+
+ if ($this->civiModules === NULL) {
+ $this->civiModules = array();
+ $this->requireCiviModules($this->civiModules);
+ }
+ $this->runHooks($this->civiModules, $fnSuffix, $numParams, $arg1, $arg2, $arg3, $arg4, $arg5);
+
if ($this->mockObject && is_callable(array($this->mockObject, $fnSuffix))) {
call_user_func(array($this->mockObject, $fnSuffix), $arg1, $arg2, $arg3, $arg4, $arg5);
}