Behat


Behat\Behat\Formatter\HtmlFormatter
Behat/Behat/Formatter/HtmlFormatter.php at line 33

Class HtmlFormatter

ConsoleFormatter
└─ProgressFormatter
└─PrettyFormatter
└─HtmlFormatter

public class HtmlFormatter
extends PrettyFormatter

HTML formatter.

Author:
Konstantin Kudryashov

Method Summary
protected array

getDefaultParameters()

{@inheritdoc}

protected void

printSuiteHeader(LoggerDataCollector logger)

Prints suite header.

protected void

printSuiteFooter(LoggerDataCollector logger)

Prints suite footer information.

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

printBackgroundHeader(BackgroundNode background)

Prints background header.

protected void

printBackgroundFooter(BackgroundNode background)

Prints background footer.

protected void

printScenarioHeader(ScenarioNode scenario)

Prints scenario header.

protected void

printScenarioName(AbstractScenarioNode scenario)

Prints scenario keyword and name.

protected void

printScenarioFooter(ScenarioNode scenario)

Prints scenario footer.

protected void

printOutlineHeader(OutlineNode outline)

Prints outline header.

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

printOutlineFooter(OutlineNode outline)

Prints outline 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

printStepPyStringArgument(PyStringNode pystring, string color)

Prints PyString argument.

protected void

printStepTableArgument(TableNode table, string color)

Prints table argument.

protected void

printStepException(Exception exception, string color)

Prints step exception.

protected void

printStepSnippet(DefinitionSnippet snippet)

Prints step snippet

protected string

colorizeDefinitionArguments(string text, DefinitionInterface definition, string color)

Returns step text with colorized arguments.

protected void

printColorizedTableRow(array row, string color)

Prints table row in color.

protected void

printPathLink(DefinitionInterface definition)

Prints path link, which links to the source containing the step definition.

protected void

printPathComment(string path, int indentCount)

protected void

printSummary(LoggerDataCollector logger)

protected void

printScenariosSummary(LoggerDataCollector logger)

protected void

printStepsSummary(LoggerDataCollector logger)

protected void

printTimeSummary(LoggerDataCollector logger)

protected void

printStatusesSummary(array statusesStatistics)

protected string

getHtmlTemplate()

Get HTML template.

protected string

getHtmlTemplateStyle()

Get HTML template style.

protected string

getHtmlTemplatePrintStyle()

Get HTML template style.

protected string

getHtmlTemplateScript()

Get HTML template script.

Methods inherited from Behat\Behat\Formatter\PrettyFormatter
afterBackground, afterFeature, afterOutline, afterOutlineExample, afterScenario, afterStep, afterSuite, beforeBackground, beforeFeature, beforeOutline, beforeOutlineExample, beforeScenario, beforeSuite, colorizeDefinitionArguments, getDefaultParameters, getFeatureOrScenarioName, getMaxLineLength, getSubscribedEvents, printBackgroundFooter, printBackgroundHeader, printColorizedTableRow, printFeatureDescription, printFeatureFooter, printFeatureHeader, printFeatureName, printFeatureOrScenarioTags, printOutlineExampleFooter, printOutlineExampleHeader, printOutlineExampleResult, printOutlineExampleResultExceptions, printOutlineExamplesSectionHeader, printOutlineFooter, printOutlineHeader, printOutlineSteps, printScenarioFooter, printScenarioHeader, printScenarioName, printScenarioPath, printStep, printStepArguments, printStepBlock, printStepDefinitionPath, printStepException, printStepName, printStepPyStringArgument, printStepSnippet, printStepTableArgument, printSuiteFooter, printSuiteHeader
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

Method Detail

Behat/Behat/Formatter/HtmlFormatter.php at line 45

getDefaultParameters

protected array getDefaultParameters()

{@inheritdoc}


Behat/Behat/Formatter/HtmlFormatter.php at line 55

printSuiteHeader

protected void printSuiteHeader(LoggerDataCollector logger)

Prints suite header.

Parameters:
logger - suite logger

Behat/Behat/Formatter/HtmlFormatter.php at line 69

printSuiteFooter

protected void printSuiteFooter(LoggerDataCollector logger)

Prints suite footer information.

Parameters:
logger - suite logger
Uses:
printSummary()
printUndefinedStepsSnippets()

Behat/Behat/Formatter/HtmlFormatter.php at line 78

printFeatureHeader

protected void printFeatureHeader(FeatureNode feature)

Prints feature header.

Uses:
printFeatureOrScenarioTags()
printFeatureName()
printFeatureDescription()

Behat/Behat/Formatter/HtmlFormatter.php at line 88

printFeatureOrScenarioTags

protected void printFeatureOrScenarioTags(AbstractNode node)

Prints node tags.


Behat/Behat/Formatter/HtmlFormatter.php at line 102

printFeatureName

protected void printFeatureName(FeatureNode feature)

Prints feature keyword and name.

Uses:
getFeatureOrScenarioName()

Behat/Behat/Formatter/HtmlFormatter.php at line 113

printFeatureDescription

protected void printFeatureDescription(FeatureNode feature)

Prints feature description.


Behat/Behat/Formatter/HtmlFormatter.php at line 127

printFeatureFooter

protected void printFeatureFooter(FeatureNode feature)

Prints feature footer.


Behat/Behat/Formatter/HtmlFormatter.php at line 135

printBackgroundHeader

protected void printBackgroundHeader(BackgroundNode background)

Prints background header.

Uses:
printScenarioName()
printScenarioPath()

Behat/Behat/Formatter/HtmlFormatter.php at line 145

printBackgroundFooter

protected void printBackgroundFooter(BackgroundNode background)

Prints background footer.


Behat/Behat/Formatter/HtmlFormatter.php at line 154

printScenarioHeader

protected void printScenarioHeader(ScenarioNode scenario)

Prints scenario header.

Uses:
printFeatureOrScenarioTags()
printScenarioName()

Behat/Behat/Formatter/HtmlFormatter.php at line 165

printScenarioName

protected void printScenarioName(AbstractScenarioNode scenario)

Prints scenario keyword and name.

Uses:
getFeatureOrScenarioName()
printScenarioPath()

Behat/Behat/Formatter/HtmlFormatter.php at line 181

printScenarioFooter

protected void printScenarioFooter(ScenarioNode scenario)

Prints scenario footer.


Behat/Behat/Formatter/HtmlFormatter.php at line 190

printOutlineHeader

protected void printOutlineHeader(OutlineNode outline)

Prints outline header.

Uses:
printFeatureOrScenarioTags()
printScenarioName()

Behat/Behat/Formatter/HtmlFormatter.php at line 201

printOutlineSteps

protected void printOutlineSteps(OutlineNode outline)

Prints outline steps.


Behat/Behat/Formatter/HtmlFormatter.php at line 210

printOutlineExamplesSectionHeader

protected void printOutlineExamplesSectionHeader(TableNode examples)

Prints outline examples header.

Uses:
printColorizedTableRow()

Behat/Behat/Formatter/HtmlFormatter.php at line 227

printOutlineExampleResult

protected void printOutlineExampleResult(TableNode examples, integer iteration, integer result, boolean isSkipped)

Prints outline example result.

Parameters:
examples - examples table
iteration - example row
result - result code
isSkipped - is outline example skipped
Uses:
printColorizedTableRow()
printOutlineExampleResultExceptions()

Behat/Behat/Formatter/HtmlFormatter.php at line 258

printOutlineExampleResultExceptions

protected void printOutlineExampleResultExceptions(TableNode examples, array events)

Prints outline example exceptions.

Parameters:
examples - examples table
events - failed steps events

Behat/Behat/Formatter/HtmlFormatter.php at line 280

printOutlineFooter

protected void printOutlineFooter(OutlineNode outline)

Prints outline footer.


Behat/Behat/Formatter/HtmlFormatter.php at line 293

printStep

protected void printStep(StepNode step, integer result, DefinitionInterface definition, string snippet, Exception exception)

Prints step.

Parameters:
step - step node
result - step result code
definition - definition instance (if step defined)
snippet - snippet (if step is undefined)
exception - exception (if step is failed)
Uses:
StepEvent

Behat/Behat/Formatter/HtmlFormatter.php at line 305

printStepBlock

protected void printStepBlock(StepNode step, DefinitionInterface definition, string color)

Prints step block (name & definition path).

Parameters:
step - step node
definition - definition (if found one)
color - color code
Uses:
printStepName()
printStepDefinitionPath()

Behat/Behat/Formatter/HtmlFormatter.php at line 320

printStepName

protected void printStepName(StepNode step, DefinitionInterface definition, string color)

Prints step name.

Parameters:
step - step node
definition - definition (if found one)
color - color code
Uses:
colorizeDefinitionArguments()

Behat/Behat/Formatter/HtmlFormatter.php at line 336

printStepDefinitionPath

protected void printStepDefinitionPath(StepNode step, DefinitionInterface definition)

Prints step definition path.

Parameters:
step - step node
definition - definition (if found one)
Uses:
printPathComment()

Behat/Behat/Formatter/HtmlFormatter.php at line 350

printStepPyStringArgument

protected void printStepPyStringArgument(PyStringNode pystring, string color)

Prints PyString argument.

Parameters:
pystring - pystring node
color - color name

Behat/Behat/Formatter/HtmlFormatter.php at line 358

printStepTableArgument

protected void printStepTableArgument(TableNode table, string color)

Prints table argument.


Behat/Behat/Formatter/HtmlFormatter.php at line 379

printStepException

protected void printStepException(Exception exception, string color)

Prints step exception.


Behat/Behat/Formatter/HtmlFormatter.php at line 390

printStepSnippet

protected void printStepSnippet(DefinitionSnippet snippet)

Prints step snippet


Behat/Behat/Formatter/HtmlFormatter.php at line 398

colorizeDefinitionArguments

protected string colorizeDefinitionArguments(string text, DefinitionInterface definition, string color)

Returns step text with colorized arguments.


Behat/Behat/Formatter/HtmlFormatter.php at line 451

printColorizedTableRow

protected void printColorizedTableRow(array row, string color)

Prints table row in color.


Behat/Behat/Formatter/HtmlFormatter.php at line 467

printPathLink

protected void printPathLink(DefinitionInterface definition)

Prints path link, which links to the source containing the step definition.


Behat/Behat/Formatter/HtmlFormatter.php at line 478

printPathComment

protected void printPathComment(string path, int indentCount)

Parameters:
path - item path
indentCount - indenation number

Behat/Behat/Formatter/HtmlFormatter.php at line 486

printSummary

protected void printSummary(LoggerDataCollector logger)

Parameters:
logger - suite logger

Behat/Behat/Formatter/HtmlFormatter.php at line 510

printScenariosSummary

protected void printScenariosSummary(LoggerDataCollector logger)

Parameters:
logger - suite logger

Behat/Behat/Formatter/HtmlFormatter.php at line 520

printStepsSummary

protected void printStepsSummary(LoggerDataCollector logger)

Parameters:
logger - suite logger

Behat/Behat/Formatter/HtmlFormatter.php at line 530

printTimeSummary

protected void printTimeSummary(LoggerDataCollector logger)

Parameters:
logger - suite logger

Behat/Behat/Formatter/HtmlFormatter.php at line 540

printStatusesSummary

protected void printStatusesSummary(array statusesStatistics)

Parameters:
statusesStatistics - statuses statistic hash (status => count)

Behat/Behat/Formatter/HtmlFormatter.php at line 562

getHtmlTemplate

protected string getHtmlTemplate()

Get HTML template.


Behat/Behat/Formatter/HtmlFormatter.php at line 602

getHtmlTemplateStyle

protected string getHtmlTemplateStyle()

Get HTML template style.


Behat/Behat/Formatter/HtmlFormatter.php at line 877

getHtmlTemplatePrintStyle

protected string getHtmlTemplatePrintStyle()

Get HTML template style.


Behat/Behat/Formatter/HtmlFormatter.php at line 934

getHtmlTemplateScript

protected string getHtmlTemplateScript()

Get HTML template script.


Behat