From 13884db1acbdabb540c336efcd1e4262546d9c38 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 5 Jan 2015 14:52:45 +1300 Subject: [PATCH] a couple of comment block fixes --- CRM/Utils/Hook/UnitTests.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Hook/UnitTests.php b/CRM/Utils/Hook/UnitTests.php index 9380010ec8..661d884dea 100644 --- a/CRM/Utils/Hook/UnitTests.php +++ b/CRM/Utils/Hook/UnitTests.php @@ -36,10 +36,16 @@ class CRM_Utils_Hook_UnitTests extends CRM_Utils_Hook { protected $mockObject; + + /** + * @var array adhocHooks to call + */ protected $adhocHooks; protected $civiModules = NULL; - // Call this in CiviUnitTestCase::setUp() + /** + * Call this in CiviUnitTestCase::setUp() + */ public function reset() { $this->mockObject = NULL; $this->adhocHooks = array(); @@ -48,6 +54,7 @@ class CRM_Utils_Hook_UnitTests extends CRM_Utils_Hook { /** * Use a unit-testing mock object to handle hook invocations * e.g. hook_civicrm_foo === $mockObject->foo() + * @param object $mockObject */ public function setMock($mockObject) { $this->mockObject = $mockObject; @@ -55,6 +62,9 @@ class CRM_Utils_Hook_UnitTests extends CRM_Utils_Hook { /** * Register a piece of code to run when invoking a hook + * @param string $hook hook name, e.g civicrm_pre + * @param array $callable function to call ie array(class, method) + * eg. array($this, mymethod) */ public function setHook($hook, $callable) { $this->adhocHooks[$hook] = $callable; -- 2.25.1