PHP 클래스 Phergie_TestCase, phergie

저자: Phergie Development Team ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: phergie/phergie 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

메소드 상세

configOffsetExists() 공개 메소드

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.
public configOffsetExists ( string $name ) : boolean
$name string Name of the setting
리턴 boolean TRUE if the setting has a value, FALSE otherwise

configOffsetGet() 공개 메소드

Returns the value of a specific configuration setting. Only intended for use by this class, but must be public for PHPUnit to call them.
public configOffsetGet ( string $name ) : mixed
$name string Name of the setting
리턴 mixed Value of the setting

getMockConfig() 보호된 메소드

Returns a mock configuration object.
protected getMockConfig ( ) : Phergie_Config
리턴 Phergie_Config

getMockConnection() 보호된 메소드

Returns a mock connection object.
protected getMockConnection ( ) : Phergie_Connection
리턴 Phergie_Connection

getMockConnectionHandler() 보호된 메소드

Returns a mock connection handler object.
protected getMockConnectionHandler ( ) : Phergie_Connection_Handler
리턴 Phergie_Connection_Handler

getMockEvent() 보호된 메소드

Returns a mock event object.
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
리턴 Phergie_Event_Request

getMockEventHandler() 보호된 메소드

Returns a mock event handler object.
protected getMockEventHandler ( ) : Phergie_Event_Handler
리턴 Phergie_Event_Handler

getMockPluginHandler() 보호된 메소드

Returns a mock plugin handler object.
protected getMockPluginHandler ( ) : Phergie_Plugin_Handler
리턴 Phergie_Plugin_Handler

getMockProcessor() 보호된 메소드

Returns a mock event processor instance.
protected getMockProcessor ( Phergie_Bot $bot ) : Phergie_Process_Abstract
$bot Phergie_Bot Bot instance for which events are to be processed
리턴 Phergie_Process_Abstract

getMockUi() 보호된 메소드

Returns a mock end-user interface instance.
protected getMockUi ( ) : Phergie_Ui_Abstract
리턴 Phergie_Ui_Abstract

setConfig() 보호된 메소드

Sets the value of a configuration setting.
protected setConfig ( string $setting, mixed $value ) : void
$setting string Name of the setting
$value mixed Value for the setting
리턴 void

tearDown() 공개 메소드

Destroys all initialized instance properties.
public tearDown ( ) : void
리턴 void

프로퍼티 상세

$config 보호되어 있는 프로퍼티

Mock configuration
protected Phergie_Config $config
리턴 Phergie_Config

$connection 보호되어 있는 프로퍼티

Mock connection
protected Phergie_Connection $connection
리턴 Phergie_Connection

$connections 보호되어 있는 프로퍼티

Mock connection handler
protected Phergie_Connection_Handler $connections
리턴 Phergie_Connection_Handler

$events 보호되어 있는 프로퍼티

Mock event handler
protected Phergie_Event_Handler $events
리턴 Phergie_Event_Handler

$nick 보호되어 있는 프로퍼티

User nick used in any events requiring one
protected string $nick
리턴 string

$plugins 보호되어 있는 프로퍼티

Mock plugin handler
protected Phergie_Plugin_Handler $plugins
리턴 Phergie_Plugin_Handler

$processor 보호되어 있는 프로퍼티

Mock event processor
protected Phergie_Process_Abstract $processor
리턴 Phergie_Process_Abstract

$settings 보호되어 있는 프로퍼티

Associative array for configuration setting values, accessed by the mock configuration object using a callback
protected array $settings
리턴 array

$source 보호되어 있는 프로퍼티

Event source used in any events requiring one
protected string $source
리턴 string

$ui 보호되어 있는 프로퍼티

Mock end-user interface
protected Phergie_Ui_Abstract $ui
리턴 Phergie_Ui_Abstract