PHP 클래스 DataSift\Storyplayer\PlayerLib\StoryTeller

all actions and tests inside a story are executed through an instance of this class, making this class the StoryTeller :)
저자: Stuart Herbert ([email protected])
파일 보기 프로젝트 열기: datasift/storyplayer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$self StoryTeller singleton instance of StoryTeller

공개 메소드들

메소드 설명
__call ( string $methodName, array $methodArgs ) : mixed
__construct ( DataSift\Storyplayer\Injectables $injectables )
closeAllOpenActions ( ) : void
convertDataForOutput ( $data ) : void
getActionLogger ( ) : Action_Logger
getActiveConfig ( ) : ActiveConfig
getCheckpoint ( ) : Story_Checkpoint
getConfig ( ) : object
getCurrentPhase ( ) : Phase
getCurrentPhaseName ( ) : string
getDeviceAdapter ( ) : DataSift\Storyplayer\DeviceLib\DeviceAdapter
getDeviceDetails ( ) : DataSift\Stone\ObjectLib\BaseObject
getDeviceName ( ) : string
getEnvironment ( ) : FromEnvironment
getEnvironmentName ( ) : void
getNewCommandRunner ( ) : CommandRunner
getOutput ( ) : Output
getPageContext ( ) : PageContext
getParams ( ) : array
getPersistDevice ( ) : boolean
getPersistProcesses ( ) : boolean
getPersistTestEnvironment ( ) : boolean
getPhaseLoader ( ) : PhaseLoader
getRunningDevice ( ) : DataSift\WebDriver\WebDriverSession
getRuntimeConfig ( ) : object
getRuntimeConfigManager ( ) : RuntimeConfigManager
getScriptFilename ( ) : string
getStory ( ) : Story
getSystemUnderTestConfig ( ) ------------------------------------------------------------------
getTestEnvironmentConfig ( ) : object
getTestEnvironmentName ( ) : string
getTestEnvironmentSignature ( ) : string
getTestUsers ( ) : DataSift\Stone\ObjectLib\BaseObject return the list of test users
getTestUsersFileIsReadOnly ( ) : boolean should we treat the file on disk where we loaded test user data from as read-only?
getTestUsersFilename ( ) : string retrieve the filename we loaded test users from
hasTestUsers ( ) : boolean have we loaded any test users from disk?
instance ( )
saveRuntimeConfig ( ) : void
setActionLogger ( Action_Logger $actionLogger ) : StoryTeller
setCheckpoint ( Story_Checkpoint $checkpoint ) : StoryTeller
setConfig ( $config ) : void
setCurrentPhase ( Phase $newPhase ) : void
setDataFormatter ( $dataFormatter )
setDevice ( string $deviceName, DataSift\Stone\ObjectLib\BaseObject $deviceDetails )
setDeviceAdapter ( DataSift\Storyplayer\DeviceLib\DeviceAdapter | null $adapter )
setOutput ( Output $output ) : void
setPageContext ( PageContext $pageContext ) : StoryTeller
setPersistDevice ( ) : void
setPersistProcesses ( ) : void
setPersistTestEnvironment ( ) : void
setPhaseLoader ( $phaseLoader )
setProseLoader ( $proseLoader ) : void
setRuntimeConfig ( $runtimeConfig ) : void
setRuntimeConfigManager ( RuntimeConfigManager $runtimeConfigManager ) : StoryTeller
setScriptFilename ( $filename ) : void
setStory ( Story $story ) : StoryTeller track the story that we are testing
setTestUsers ( DataSift\Stone\ObjectLib\BaseObject $users ) remember the test users that we have
setTestUsersFileIsReadOnly ( boolean $readOnly = true ) set whether or not we treat the file on disk were we loaded test user data from as read-only
setTestUsersFilename ( string $filename ) remember the filename we loaded test users from
startAction ( $text ) : Action_LogItem
startDevice ( ) : void
stopDevice ( ) : void

메소드 상세

__call() 공개 메소드

public __call ( string $methodName, array $methodArgs ) : mixed
$methodName string
$methodArgs array
리턴 mixed

__construct() 공개 메소드

public __construct ( DataSift\Storyplayer\Injectables $injectables )
$injectables DataSift\Storyplayer\Injectables

closeAllOpenActions() 공개 메소드

public closeAllOpenActions ( ) : void
리턴 void

convertDataForOutput() 공개 메소드

public convertDataForOutput ( $data ) : void
리턴 void

getActionLogger() 공개 메소드

public getActionLogger ( ) : Action_Logger
리턴 Action_Logger

getActiveConfig() 공개 메소드

public getActiveConfig ( ) : ActiveConfig
리턴 DataSift\Storyplayer\ConfigLib\ActiveConfig

getCheckpoint() 공개 메소드

public getCheckpoint ( ) : Story_Checkpoint
리턴 Story_Checkpoint

getConfig() 공개 메소드

public getConfig ( ) : object
리턴 object

getCurrentPhase() 공개 메소드

public getCurrentPhase ( ) : Phase
리턴 DataSift\Storyplayer\Phases\Phase

getCurrentPhaseName() 공개 메소드

public getCurrentPhaseName ( ) : string
리턴 string

getDeviceAdapter() 공개 메소드

public getDeviceAdapter ( ) : DataSift\Storyplayer\DeviceLib\DeviceAdapter
리턴 DataSift\Storyplayer\DeviceLib\DeviceAdapter

getDeviceDetails() 공개 메소드

public getDeviceDetails ( ) : DataSift\Stone\ObjectLib\BaseObject
리턴 DataSift\Stone\ObjectLib\BaseObject

getDeviceName() 공개 메소드

public getDeviceName ( ) : string
리턴 string

getEnvironment() 공개 메소드

public getEnvironment ( ) : FromEnvironment
리턴 Prose\FromEnvironment

getEnvironmentName() 공개 메소드

public getEnvironmentName ( ) : void
리턴 void

getNewCommandRunner() 공개 메소드

public getNewCommandRunner ( ) : CommandRunner
리턴 DataSift\Storyplayer\CommandLib\CommandRunner

getOutput() 공개 메소드

public getOutput ( ) : Output
리턴 DataSift\Storyplayer\Output

getPageContext() 공개 메소드

public getPageContext ( ) : PageContext
리턴 Prose\PageContext

getParams() 공개 메소드

public getParams ( ) : array
리턴 array

getPersistDevice() 공개 메소드

public getPersistDevice ( ) : boolean
리턴 boolean

getPersistProcesses() 공개 메소드

public getPersistProcesses ( ) : boolean
리턴 boolean

getPersistTestEnvironment() 공개 메소드

getPhaseLoader() 공개 메소드

public getPhaseLoader ( ) : PhaseLoader
리턴 PhaseLoader

getRunningDevice() 공개 메소드

public getRunningDevice ( ) : DataSift\WebDriver\WebDriverSession
리턴 DataSift\WebDriver\WebDriverSession

getRuntimeConfig() 공개 메소드

public getRuntimeConfig ( ) : object
리턴 object

getRuntimeConfigManager() 공개 메소드

public getRuntimeConfigManager ( ) : RuntimeConfigManager
리턴 DataSift\Storyplayer\Cli\RuntimeConfigManager

getScriptFilename() 공개 메소드

public getScriptFilename ( ) : string
리턴 string

getStory() 공개 메소드

public getStory ( ) : Story
리턴 Story

getSystemUnderTestConfig() 공개 메소드

------------------------------------------------------------------

getTestEnvironmentConfig() 공개 메소드

public getTestEnvironmentConfig ( ) : object
리턴 object

getTestEnvironmentName() 공개 메소드

public getTestEnvironmentName ( ) : string
리턴 string

getTestEnvironmentSignature() 공개 메소드

getTestUsers() 공개 메소드

return the list of test users
public getTestUsers ( ) : DataSift\Stone\ObjectLib\BaseObject
리턴 DataSift\Stone\ObjectLib\BaseObject

getTestUsersFileIsReadOnly() 공개 메소드

NOTE: we never treat the loaded data as read-only. Stories are free to change this data, and these changes will persist between stories. We just won't save any changes back to disk if this method call returns TRUE.

getTestUsersFilename() 공개 메소드

retrieve the filename we loaded test users from
public getTestUsersFilename ( ) : string
리턴 string

hasTestUsers() 공개 메소드

have we loaded any test users from disk?
public hasTestUsers ( ) : boolean
리턴 boolean TRUE if we have

instance() 공개 정적인 메소드

public static instance ( )

saveRuntimeConfig() 공개 메소드

public saveRuntimeConfig ( ) : void
리턴 void

setActionLogger() 공개 메소드

public setActionLogger ( Action_Logger $actionLogger ) : StoryTeller
$actionLogger Action_Logger
리턴 StoryTeller

setCheckpoint() 공개 메소드

public setCheckpoint ( Story_Checkpoint $checkpoint ) : StoryTeller
$checkpoint Story_Checkpoint
리턴 StoryTeller

setConfig() 공개 메소드

public setConfig ( $config ) : void
리턴 void

setCurrentPhase() 공개 메소드

public setCurrentPhase ( Phase $newPhase ) : void
$newPhase DataSift\Storyplayer\Phases\Phase
리턴 void

setDataFormatter() 공개 메소드

public setDataFormatter ( $dataFormatter )

setDevice() 공개 메소드

public setDevice ( string $deviceName, DataSift\Stone\ObjectLib\BaseObject $deviceDetails )
$deviceName string
$deviceDetails DataSift\Stone\ObjectLib\BaseObject

setDeviceAdapter() 공개 메소드

public setDeviceAdapter ( DataSift\Storyplayer\DeviceLib\DeviceAdapter | null $adapter )
$adapter DataSift\Storyplayer\DeviceLib\DeviceAdapter | null

setOutput() 공개 메소드

public setOutput ( Output $output ) : void
$output DataSift\Storyplayer\Output
리턴 void

setPageContext() 공개 메소드

public setPageContext ( PageContext $pageContext ) : StoryTeller
$pageContext Prose\PageContext
리턴 StoryTeller

setPersistDevice() 공개 메소드

public setPersistDevice ( ) : void
리턴 void

setPersistProcesses() 공개 메소드

public setPersistProcesses ( ) : void
리턴 void

setPersistTestEnvironment() 공개 메소드

public setPersistTestEnvironment ( ) : void
리턴 void

setPhaseLoader() 공개 메소드

public setPhaseLoader ( $phaseLoader )

setProseLoader() 공개 메소드

public setProseLoader ( $proseLoader ) : void
리턴 void

setRuntimeConfig() 공개 메소드

public setRuntimeConfig ( $runtimeConfig ) : void
리턴 void

setRuntimeConfigManager() 공개 메소드

public setRuntimeConfigManager ( RuntimeConfigManager $runtimeConfigManager ) : StoryTeller
$runtimeConfigManager DataSift\Storyplayer\Cli\RuntimeConfigManager
리턴 StoryTeller

setScriptFilename() 공개 메소드

public setScriptFilename ( $filename ) : void
리턴 void

setStory() 공개 메소드

NOTE: setting the story also creates a new Story_Result object so that we can track how the story is getting on
public setStory ( Story $story ) : StoryTeller
$story Story
리턴 StoryTeller

setTestUsers() 공개 메소드

remember the test users that we have
public setTestUsers ( DataSift\Stone\ObjectLib\BaseObject $users )
$users DataSift\Stone\ObjectLib\BaseObject our test users

setTestUsersFileIsReadOnly() 공개 메소드

NOTE: we never treat the loaded data as read-only. Stories are free to change this data, and these changes will persist between stories. We just won't save any changes back to disk if you set this to TRUE.
public setTestUsersFileIsReadOnly ( boolean $readOnly = true )
$readOnly boolean TRUE if we should not save data back to this file

setTestUsersFilename() 공개 메소드

we'll re-use this filename later on when it is time to save the test users back to disk
public setTestUsersFilename ( string $filename )
$filename string the filename to remember

startAction() 공개 메소드

public startAction ( $text ) : Action_LogItem
리턴 Action_LogItem

startDevice() 공개 메소드

public startDevice ( ) : void
리턴 void

stopDevice() 공개 메소드

public stopDevice ( ) : void
리턴 void

프로퍼티 상세

$self 보호되어 있는 정적으로 프로퍼티

singleton instance of StoryTeller
protected static StoryTeller,DataSift\Storyplayer\PlayerLib $self
리턴 StoryTeller