function 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 124
Class
- ExpectationException
- Exception thrown for failed expectations.
Namespace
Behat\Mink\ExceptionCode
protected function pipeString($string) {
return '| ' . strtr($string, array(
"\n" => "\n| ",
));
}