ConsoleFormatter
└─ProgressFormatter
└─PrettyFormatter
public class PrettyFormatter
extends ProgressFormatter
| Method Summary | |
|---|---|
| protected array | {@inheritdoc} |
| static array | Returns an array of event names this subscriber wants to listen to. |
| void | beforeSuite(SuiteEvent event) Listens to "suite.before" event. |
| void | afterSuite(SuiteEvent event) Listens to "suite.after" event. |
| void | beforeFeature(FeatureEvent event) Listens to "feature.before" event. |
| void | afterFeature(FeatureEvent event) Listens to "feature.after" event. |
| void | beforeBackground(BackgroundEvent event) Listens to "background.before" event. |
| void | afterBackground(BackgroundEvent event) Listens to "background.after" event. |
| void | beforeOutline(OutlineEvent event) Listens to "outline.before" event. |
| void | beforeOutlineExample(OutlineExampleEvent event) Listens to "outline.example.before" event. |
| void | afterOutlineExample(OutlineExampleEvent event) Listens to "outline.example.after" event. |
| void | afterOutline(OutlineEvent event) Listens to "outline.after" event. |
| void | beforeScenario(ScenarioEvent event) Listens to "scenario.before" event. |
| void | afterScenario(ScenarioEvent event) Listens to "scenario.after" event. |
| void | Listens to "step.after" event. |
| protected void | printFeatureHeader(FeatureNode feature) Prints feature header. |
| protected void | printFeatureOrScenarioTags(AbstractNode node) Prints node tags. |
| protected void | printFeatureName(FeatureNode feature) Prints feature keyword and name. |
| protected void | printFeatureDescription(FeatureNode feature) Prints feature description. |
| protected void | printFeatureFooter(FeatureNode feature) Prints feature footer. |
| protected void | printScenarioName(AbstractScenarioNode scenario) Prints scenario keyword and name. |
| protected void | printScenarioPath(AbstractScenarioNode scenario) Prints scenario definition path. |
| protected void | printBackgroundHeader(BackgroundNode background) Prints background header. |
| protected void | printBackgroundFooter(BackgroundNode background) Prints background footer. |
| protected void | printOutlineHeader(OutlineNode outline) Prints outline header. |
| protected void | printOutlineFooter(OutlineNode outline) Prints outline footer. |
| protected void | printOutlineExampleHeader(OutlineNode outline, integer iteration) Prints outline example header. |
| protected void | printOutlineExampleFooter(OutlineNode outline, integer iteration, integer result, Boolean skipped) Prints outline example result. |
| protected void | printOutlineSteps(OutlineNode outline) Prints outline steps. |
| protected void | printOutlineExamplesSectionHeader(TableNode examples) Prints outline examples header. |
| protected void | printOutlineExampleResult(TableNode examples, integer iteration, integer result, boolean isSkipped) Prints outline example result. |
| protected void | printOutlineExampleResultExceptions(TableNode examples, array events) Prints outline example exceptions. |
| protected void | printScenarioHeader(ScenarioNode scenario) Prints scenario header. |
| protected void | printScenarioFooter(ScenarioNode scenario) Prints scenario footer. |
| protected void | printStep(StepNode step, integer result, DefinitionInterface definition, string snippet, \Exception exception) Prints step. |
| protected void | printStepBlock(StepNode step, DefinitionInterface definition, string color) Prints step block (name & definition path). |
| protected void | printStepName(StepNode step, DefinitionInterface definition, string color) Prints step name. |
| protected void | printStepDefinitionPath(StepNode step, DefinitionInterface definition) Prints step definition path. |
| protected void | printStepArguments(array arguments, string color) Prints step arguments. |
| protected void | printStepException(\Exception exception, string color) Prints step exception. |
| protected void | printStepSnippet(DefinitionSnippet snippet) Prints step snippet |
| protected void | printStepPyStringArgument(PyStringNode pystring, string color) Prints PyString argument. |
| protected void | printStepTableArgument(TableNode table, string color) Prints table argument. |
| protected void | printColorizedTableRow(array row, string color) Prints table row in color. |
| protected void | printSuiteHeader(LoggerDataCollector logger) Prints suite header. |
| protected void | printSuiteFooter(LoggerDataCollector logger) Prints suite footer information. |
| protected string | getFeatureOrScenarioName(AbstractNode node, Boolean haveBaseIndent) Returns feature or scenario name. |
| protected string | colorizeDefinitionArguments(string text, DefinitionInterface definition, string color) Returns step text with colorized arguments. |
| protected integer | getMaxLineLength(integer max, AbstractScenarioNode scenario) Returns max lines size for section elements. |
| Methods inherited from Behat\Behat\Formatter\ProgressFormatter | |
|---|---|
| afterStep, afterSuite, getDefaultParameters, getSubscribedEvents, printExceptionEvents, printFailedSteps, printPathComment, printPendingSteps, printScenariosSummary, printSnippets, printStatusesSummary, printStep, printStepPath, printStepsSummary, printSummary, printTimeSummary, printUndefinedStepsSnippets, relativizePathsInString | |
| 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()
{@inheritdoc}
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 beforeSuite(SuiteEvent event)
Listens to "suite.before" event.
public void afterSuite(SuiteEvent event)
Listens to "suite.after" event.
public void beforeFeature(FeatureEvent event)
Listens to "feature.before" event.
public void afterFeature(FeatureEvent event)
Listens to "feature.after" event.
public void beforeBackground(BackgroundEvent event)
Listens to "background.before" event.
public void afterBackground(BackgroundEvent event)
Listens to "background.after" event.
public void beforeOutline(OutlineEvent event)
Listens to "outline.before" event.
public void beforeOutlineExample(OutlineExampleEvent event)
Listens to "outline.example.before" event.
public void afterOutlineExample(OutlineExampleEvent event)
Listens to "outline.example.after" event.
public void afterOutline(OutlineEvent event)
Listens to "outline.after" event.
public void beforeScenario(ScenarioEvent event)
Listens to "scenario.before" event.
public void afterScenario(ScenarioEvent event)
Listens to "scenario.after" event.
public void afterStep(StepEvent event)
Listens to "step.after" event.
protected void printFeatureHeader(FeatureNode feature)
Prints feature header.
protected void printFeatureOrScenarioTags(AbstractNode node)
Prints node tags.
protected void printFeatureName(FeatureNode feature)
Prints feature keyword and name.
protected void printFeatureDescription(FeatureNode feature)
Prints feature description.
protected void printFeatureFooter(FeatureNode feature)
Prints feature footer.
protected void printScenarioName(AbstractScenarioNode scenario)
Prints scenario keyword and name.
protected void printScenarioPath(AbstractScenarioNode scenario)
Prints scenario definition path.
protected void printBackgroundHeader(BackgroundNode background)
Prints background header.
protected void printBackgroundFooter(BackgroundNode background)
Prints background footer.
protected void printOutlineHeader(OutlineNode outline)
Prints outline header.
protected void printOutlineFooter(OutlineNode outline)
Prints outline footer.
protected void printOutlineExampleHeader(OutlineNode outline, integer iteration)
Prints outline example header.
protected void printOutlineExampleFooter(OutlineNode outline, integer iteration, integer result, Boolean skipped)
Prints outline example result.
protected void printOutlineSteps(OutlineNode outline)
Prints outline steps.
protected void printOutlineExamplesSectionHeader(TableNode examples)
Prints outline examples header.
protected void printOutlineExampleResult(TableNode examples, integer iteration, integer result, boolean isSkipped)
Prints outline example result.
protected void printOutlineExampleResultExceptions(TableNode examples, array events)
Prints outline example exceptions.
protected void printScenarioHeader(ScenarioNode scenario)
Prints scenario header.
protected void printScenarioFooter(ScenarioNode scenario)
Prints scenario footer.
protected void printStep(StepNode step, integer result, DefinitionInterface definition, string snippet, \Exception exception)
Prints step.
protected void printStepBlock(StepNode step, DefinitionInterface definition, string color)
Prints step block (name & definition path).
protected void printStepName(StepNode step, DefinitionInterface definition, string color)
Prints step name.
protected void printStepDefinitionPath(StepNode step, DefinitionInterface definition)
Prints step definition path.
protected void printStepArguments(array arguments, string color)
Prints step arguments.
protected void printStepException(\Exception exception, string color)
Prints step exception.
protected void printStepSnippet(DefinitionSnippet snippet)
Prints step snippet
protected void printStepPyStringArgument(PyStringNode pystring, string color)
Prints PyString argument.
protected void printStepTableArgument(TableNode table, string color)
Prints table argument.
protected void printColorizedTableRow(array row, string color)
Prints table row in color.
protected void printSuiteHeader(LoggerDataCollector logger)
Prints suite header.
protected void printSuiteFooter(LoggerDataCollector logger)
Prints suite footer information.
protected string getFeatureOrScenarioName(AbstractNode node, Boolean haveBaseIndent)
Returns feature or scenario name.
protected string colorizeDefinitionArguments(string text, DefinitionInterface definition, string color)
Returns step text with colorized arguments.
protected integer getMaxLineLength(integer max, AbstractScenarioNode scenario)
Returns max lines size for section elements.
Pretty formatter.