public function HookStub::__construct in Authenticated User Page Caching (Authcache) 7.2
Construct new stub recorderd.
File
- tests/
HookStub.inc, line 140 - Defines some helper classes for stubbing and recording hook invocations.
Class
- HookStub
- Static methods for keeping track of enabled hooks and invocations.
Code
public function __construct($hookname, $return = NULL) {
$this->hookname = $hookname;
$this->invocations = array();
$this->return = $return;
}