Property | Type | Description | |
---|---|---|---|
$config | Phergie_Config | Mock configuration | |
$connection | Phergie_Connection | Mock connection | |
$connections | Phergie_Connection_Handler | Mock connection handler | |
$events | Phergie_Event_Handler | Mock event handler | |
$nick | string | User nick used in any events requiring one | |
$plugins | Phergie_Plugin_Handler | Mock plugin handler | |
$processor | Phergie_Process_Abstract | Mock event processor | |
$settings | array | Associative array for configuration setting values, accessed by the mock configuration object using a callback | |
$source | string | Event source used in any events requiring one | |
$ui | Phergie_Ui_Abstract | Mock end-user interface |
Method | Description | |
---|---|---|
configOffsetExists ( string $name ) : boolean | Returns whether a specific configuration setting has a value. Only intended for use by this class, but must be public for PHPUnit to call them. | |
configOffsetGet ( string $name ) : mixed | Returns the value of a specific configuration setting. Only intended for use by this class, but must be public for PHPUnit to call them. | |
tearDown ( ) : void | Destroys all initialized instance properties. |
Method | Description | |
---|---|---|
getMockConfig ( ) : Phergie_Config | Returns a mock configuration object. | |
getMockConnection ( ) : Phergie_Connection | Returns a mock connection object. | |
getMockConnectionHandler ( ) : Phergie_Connection_Handler | Returns a mock connection handler object. | |
getMockEvent ( array $args = [], string $nick = null, string $source = null ) : Phergie_Event_Request | Returns a mock event object. | |
getMockEventHandler ( ) : Phergie_Event_Handler | Returns a mock event handler object. | |
getMockPluginHandler ( ) : Phergie_Plugin_Handler | Returns a mock plugin handler object. | |
getMockProcessor ( Phergie_Bot $bot ) : Phergie_Process_Abstract | Returns a mock event processor instance. | |
getMockUi ( ) : Phergie_Ui_Abstract | Returns a mock end-user interface instance. | |
setConfig ( string $setting, mixed $value ) : void | Sets the value of a configuration setting. |
public configOffsetExists ( string $name ) : boolean | ||
$name | string | Name of the setting |
return | boolean | TRUE if the setting has a value, FALSE otherwise |
public configOffsetGet ( string $name ) : mixed | ||
$name | string | Name of the setting |
return | mixed | Value of the setting |
protected getMockConfig ( ) : Phergie_Config | ||
return | Phergie_Config |
protected getMockConnection ( ) : Phergie_Connection | ||
return | Phergie_Connection |
protected getMockConnectionHandler ( ) : Phergie_Connection_Handler | ||
return | Phergie_Connection_Handler |
protected getMockEvent ( array $args = [], string $nick = null, string $source = null ) : Phergie_Event_Request | ||
$args | array | Optional associative array of event arguments |
$nick | string | Optional user nick to associate with the event |
$source | string | Optional user nick or channel name to associate with the event as its source |
return | Phergie_Event_Request |
protected getMockEventHandler ( ) : Phergie_Event_Handler | ||
return | Phergie_Event_Handler |
protected getMockPluginHandler ( ) : Phergie_Plugin_Handler | ||
return | Phergie_Plugin_Handler |
protected getMockProcessor ( Phergie_Bot $bot ) : Phergie_Process_Abstract | ||
$bot | Phergie_Bot | Bot instance for which events are to be processed |
return | Phergie_Process_Abstract |
protected getMockUi ( ) : Phergie_Ui_Abstract | ||
return | Phergie_Ui_Abstract |
protected Phergie_Config $config | ||
return | Phergie_Config |
protected Phergie_Connection $connection | ||
return | Phergie_Connection |
protected Phergie_Connection_Handler $connections | ||
return | Phergie_Connection_Handler |
protected Phergie_Event_Handler $events | ||
return | Phergie_Event_Handler |
protected string $nick | ||
return | string |
protected Phergie_Plugin_Handler $plugins | ||
return | Phergie_Plugin_Handler |
protected Phergie_Process_Abstract $processor | ||
return | Phergie_Process_Abstract |
protected array $settings | ||
return | array |
protected string $source | ||
return | string |