\TestMockDispatcher
Class to mock JEventDispatcher.
Synopsis
class TestMockDispatcher
{
- // members
- public $handlers;
- public $triggered;
- // methods
- public static create()
- public void mockRegister()
- public array mockTrigger()
Members
public
- $handlers
—
array
Keeps track of mock handlers. - $triggered
—
array
Keeps track of triggers.
Methods
public
- create() — Creates and instance of the mock JLanguage object.
- mockRegister() — Callback for the JEventDispatcher register method.
- mockTrigger() — Callback for the JEventDispatcher trigger method.