ConsoleFormatter
└─ProgressFormatter
public class ProgressFormatter
extends ConsoleFormatter
| Method Summary | |
|---|---|
| protected array | Returns default parameters to construct ParameterBag. |
| static array | Returns an array of event names this subscriber wants to listen to. |
| void | afterSuite(SuiteEvent event) Listens to "suite.after" event. |
| void | Listens to "step.after" event. |
| protected void | printStep(StepNode step, integer result, DefinitionInterface definition, string snippet, \Exception exception) Prints step. |
| protected void | printFailedSteps(LoggerDataCollector logger) Prints all failed steps info. |
| protected void | printPendingSteps(LoggerDataCollector logger) Prints all pending steps information. |
| protected void | printExceptionEvents(array events) Prints exceptions information. |
| protected void | printStepPath(StepNode step, DefinitionInterface definition, \Exception exception) Prints path to step. |
| protected void | printSummary(LoggerDataCollector logger) Prints summary suite run information. |
| protected void | printScenariosSummary(LoggerDataCollector logger) Prints scenarios summary information. |
| protected void | printStepsSummary(LoggerDataCollector logger) Prints steps summary information. |
| protected void | printStatusesSummary(array statusesStatistics) Prints statuses summary. |
| protected void | printTimeSummary(LoggerDataCollector logger) Prints suite run time inforamtion. |
| protected void | printUndefinedStepsSnippets(LoggerDataCollector logger) Prints undefined steps snippets. |
| protected void | printSnippets(LoggerDataCollector logger) Prints steps snippets. |
| protected void | printPathComment(string path, integer indentCount) Prints path comment. |
| protected string | relativizePathsInString(string string) Returns string with relativized paths. |
| Methods inherited from Behat\Behat\Formatter\ConsoleFormatter | |
|---|---|
| __construct, configureOutputConsole, createOutputConsole, createOutputStream, exceptionToString, flushOutputConsole, getDefaultParameters, getParameter, getResultColorCode, getWritingConsole, hasParameter, setParameter, setTranslator, translate, translateChoice, write, writeln | |
protected array getDefaultParameters()
Returns default parameters to construct ParameterBag.
public static array getSubscribedEvents()
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
* The method name to call (priority defaults to 0) * An array composed of the method name to call and the priority * An array of arrays composed of the method names to call and respective priorities, or 0 if unset
For instance:
* array('eventName' => 'methodName') * array('eventName' => array('methodName', $priority)) * array('eventName' => array(array('methodName1', $priority), array('methodName2'))
public void afterSuite(SuiteEvent event)
Listens to "suite.after" event.
public void afterStep(StepEvent event)
Listens to "step.after" event.
protected void printStep(StepNode step, integer result, DefinitionInterface definition, string snippet, \Exception exception)
Prints step.
protected void printFailedSteps(LoggerDataCollector logger)
Prints all failed steps info.
protected void printPendingSteps(LoggerDataCollector logger)
Prints all pending steps information.
protected void printExceptionEvents(array events)
Prints exceptions information.
protected void printStepPath(StepNode step, DefinitionInterface definition, \Exception exception)
Prints path to step.
protected void printSummary(LoggerDataCollector logger)
Prints summary suite run information.
protected void printScenariosSummary(LoggerDataCollector logger)
Prints scenarios summary information.
protected void printStepsSummary(LoggerDataCollector logger)
Prints steps summary information.
protected void printStatusesSummary(array statusesStatistics)
Prints statuses summary.
protected void printTimeSummary(LoggerDataCollector logger)
Prints suite run time inforamtion.
protected void printUndefinedStepsSnippets(LoggerDataCollector logger)
Prints undefined steps snippets.
protected void printSnippets(LoggerDataCollector logger)
Prints steps snippets.
protected void printPathComment(string path, integer indentCount)
Prints path comment.
protected string relativizePathsInString(string string)
Returns string with relativized paths.
Progress formatter.