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

Breadcrumb

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

function ResponseTextException::getContext

Overrides ExpectationException::getContext

File

vendor/behat/mink/src/Exception/ResponseTextException.php, line 20

Class

ResponseTextException
Exception thrown when an expectation on the response text fails.

Namespace

Behat\Mink\Exception

Code

protected function getContext() {
    return $this->getDriver()
        ->getText('//html');
}

API Navigation

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