TestMockDispatcher::mockRegister
Callback for the JEventDispatcher register method.
Signature
public function mockRegister(string
$event,
[string
$handler = null,
[mixed
$return = null]] )
Parameters
-
$event
- Name of the event to register handler for.
-
$handler
- Name of the event handler.
-
$return
- The mock value to return for the given event handler.
Returns
- void