PHP 클래스 DataSift\Storyplayer\Reports\JUnitReport

저자: Nicola Asuni ([email protected])
저자: Stuart Herbert ([email protected])
상속: extends Report
파일 보기 프로젝트 열기: datasift/storyplayer

보호된 프로퍼티들

프로퍼티 타입 설명
$filename string where will we write our report to?
$silentActivity boolean are we running totally silently?
$testcase array JUnit testcase maps to the phase groups
$testsuite array JUnit testsuite maps to the whole story

공개 메소드들

메소드 설명
__construct ( $args )
endPhase ( $phase, $phaseResult ) : void called when a story ends a phase
endPhaseGroup ( PhaseGroup_Result $result ) : void called when we end a set of phases
endStoryplayer ( float $duration ) : void called when storyplayer ends
logCliError ( string $msg ) : void called when the outer CLI shell encounters a fatal error
logCliErrorWithException ( string $msg, Exception $e ) : void
logCliInfo ( string $msg ) : void called when the outer CLI shell needs to tell the user something
logCliWarning ( string $msg ) : void called when the outer CLI shell needs to publish a warning
logPhaseActivity ( string $msg, $codeLine = null ) : void called when a story logs an action
logPhaseCodeLine ( $codeLine )
logPhaseError ( string $phaseName, string $msg ) : void called when a story logs an error
logPhaseSkipped ( string $phaseName, string $msg ) : void called when a story is skipped
logPhaseSubprocessOutput ( string $msg ) : void called when a story logs the (possibly partial) output from running a subprocess
logVardump ( string $name, mixed $var ) : void an alternative to using PHP's built-in var_dump()
resetSilentMode ( )
setSilentMode ( )
startPhase ( $phase ) : void called when a story starts a new phase
startPhaseGroup ( $activity, string $name ) : void called when we start a new set of phases
startStoryplayer ( string $version, string $url, string $copyright, string $license ) : void called when storyplayer starts

메소드 상세

__construct() 공개 메소드

public __construct ( $args )

endPhase() 공개 메소드

called when a story ends a phase
public endPhase ( $phase, $phaseResult ) : void
리턴 void

endPhaseGroup() 공개 메소드

called when we end a set of phases
public endPhaseGroup ( PhaseGroup_Result $result ) : void
$result PhaseGroup_Result
리턴 void

endStoryplayer() 공개 메소드

called when storyplayer ends
public endStoryplayer ( float $duration ) : void
$duration float duration in seconds
리턴 void

logCliError() 공개 메소드

called when the outer CLI shell encounters a fatal error
public logCliError ( string $msg ) : void
$msg string the error message to show the user
리턴 void

logCliErrorWithException() 공개 메소드

public logCliErrorWithException ( string $msg, Exception $e ) : void
$msg string
$e Exception
리턴 void

logCliInfo() 공개 메소드

called when the outer CLI shell needs to tell the user something
public logCliInfo ( string $msg ) : void
$msg string the message to show the user
리턴 void

logCliWarning() 공개 메소드

called when the outer CLI shell needs to publish a warning
public logCliWarning ( string $msg ) : void
$msg string the warning message to show the user
리턴 void

logPhaseActivity() 공개 메소드

called when a story logs an action
public logPhaseActivity ( string $msg, $codeLine = null ) : void
$msg string
리턴 void

logPhaseCodeLine() 공개 메소드

public logPhaseCodeLine ( $codeLine )

logPhaseError() 공개 메소드

called when a story logs an error
public logPhaseError ( string $phaseName, string $msg ) : void
$phaseName string
$msg string
리턴 void

logPhaseSkipped() 공개 메소드

called when a story is skipped
public logPhaseSkipped ( string $phaseName, string $msg ) : void
$phaseName string
$msg string
리턴 void

logPhaseSubprocessOutput() 공개 메소드

called when a story logs the (possibly partial) output from running a subprocess
public logPhaseSubprocessOutput ( string $msg ) : void
$msg string the output to log
리턴 void

logVardump() 공개 메소드

an alternative to using PHP's built-in var_dump()
public logVardump ( string $name, mixed $var ) : void
$name string a human-readable name to describe $var
$var mixed the variable to dump
리턴 void

resetSilentMode() 공개 메소드

public resetSilentMode ( )

setSilentMode() 공개 메소드

public setSilentMode ( )

startPhase() 공개 메소드

called when a story starts a new phase
public startPhase ( $phase ) : void
리턴 void

startPhaseGroup() 공개 메소드

called when we start a new set of phases
public startPhaseGroup ( $activity, string $name ) : void
$name string
리턴 void

startStoryplayer() 공개 메소드

called when storyplayer starts
public startStoryplayer ( string $version, string $url, string $copyright, string $license ) : void
$version string
$url string
$copyright string
$license string
리턴 void

프로퍼티 상세

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

where will we write our report to?
protected string $filename
리턴 string

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

are we running totally silently?
protected bool $silentActivity
리턴 boolean

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

JUnit testcase maps to the phase groups
protected array $testcase
리턴 array

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

JUnit testsuite maps to the whole story
protected array $testsuite
리턴 array