PHP Класс DataSift\Storyplayer\Reports\JUnitReport

Автор: Nicola Asuni ([email protected])
Автор: Stuart Herbert ([email protected])
Наследование: extends Report
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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