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

Breadcrumb

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

function ExpectationException::getContext

Gets the context rendered for this exception.

Return value

string

1 call to ExpectationException::getContext()
ExpectationException::__toString in vendor/behat/mink/src/Exception/ExpectationException.php
Returns exception message with additional context info.
2 methods override ExpectationException::getContext()
ElementHtmlException::getContext in vendor/behat/mink/src/Exception/ElementHtmlException.php
Gets the context rendered for this exception.
ResponseTextException::getContext in vendor/behat/mink/src/Exception/ResponseTextException.php
Gets the context rendered for this exception.

File

vendor/behat/mink/src/Exception/ExpectationException.php, line 84

Class

ExpectationException
Exception thrown for failed expectations.

Namespace

Behat\Mink\Exception

Code

protected function getContext() {
    return $this->trimBody($this->driver
        ->getContent());
}

API Navigation

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