Interface TemplateInterface
Interface TemplateInterface specifices templates for default and negated messages when formatting match results.
Template variables are wrapped in curly braces: {{expected}}, {{actual}}.
Available variables are:
{{expected}} {{actual}}
Direct known implementers
Peridot\Leo\Matcher\Template\ArrayTemplate
Namespace: Peridot\Leo\Matcher\Template
Package: Peridot\Leo\Matcher\Template
Code: $this->setDefaultTemplate("Expected {{expected}}, got {{actual}}");
Endcode
Located at Matcher/Template/TemplateInterface.php
Package: Peridot\Leo\Matcher\Template
Code: $this->setDefaultTemplate("Expected {{expected}}, got {{actual}}");
Endcode
Located at Matcher/Template/TemplateInterface.php
public
array
|
|
public
mixed
|
|
public
string
|
#
getDefaultTemplate( )
Set the default template, that is the template for a failed match without negation. |
public
mixed
|
#
setDefaultTemplate( string $template )
Set the default template that is used when negation is not specified. |
public
string
|
|
public
mixed
|