You are here

protected function ElementHtmlException::getContext in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Exception/ElementHtmlException.php \Behat\Mink\Exception\ElementHtmlException::getContext()

Gets the context rendered for this exception.

Return value

string

Overrides ExpectationException::getContext

1 method overrides ElementHtmlException::getContext()
ElementTextException::getContext in vendor/behat/mink/src/Exception/ElementTextException.php
Gets the context rendered for this exception.

File

vendor/behat/mink/src/Exception/ElementHtmlException.php, line 46

Class

ElementHtmlException
Exception thrown when an expectation on the HTML of an element fails.

Namespace

Behat\Mink\Exception

Code

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