Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExpectationException.php

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\Exception

Code

protected function pipeString($string) {
    return '|  ' . strtr($string, array(
        "\n" => "\n|  ",
    ));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal