protected function ExpectationException::pipeString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Exception/ExpectationException.php \Behat\Mink\Exception\ExpectationException::pipeString()
Prepends every line in a string with pipe (|).
Parameters
string $string:
Return value
string
1 call to ExpectationException::pipeString()
- ExpectationException::__toString in vendor/
behat/ mink/ src/ Exception/ ExpectationException.php - Returns exception message with additional context info.
File
- vendor/
behat/ mink/ src/ Exception/ ExpectationException.php, line 118
Class
- ExpectationException
- Exception thrown for failed expectations.
Namespace
Behat\Mink\ExceptionCode
protected function pipeString($string) {
return '| ' . strtr($string, array(
"\n" => "\n| ",
));
}