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

Breadcrumb

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

function ElementTextException::getContext

Overrides ElementHtmlException::getContext

File

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

Class

ElementTextException
Exception thrown when an expectation on the text of an element fails.

Namespace

Behat\Mink\Exception

Code

protected function getContext() {
    return $this->element
        ->getText();
}

API Navigation

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