You are here

class ElementTextException in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/Exception/ElementTextException.php \Behat\Mink\Exception\ElementTextException

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

@author Konstantin Kudryashov <ever.zet@gmail.com>

Hierarchy

Expanded class hierarchy of ElementTextException

2 files declare their use of ElementTextException
ElementTextExceptionTest.php in vendor/behat/mink/tests/Exception/ElementTextExceptionTest.php
WebAssert.php in vendor/behat/mink/src/WebAssert.php

File

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

Namespace

Behat\Mink\Exception
View source
class ElementTextException extends ElementHtmlException {
  protected function getContext() {
    return $this->element
      ->getText();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ElementHtmlException::$element protected property Element instance.
ElementHtmlException::__construct public function Initializes exception. Overrides ExpectationException::__construct
ElementTextException::getContext protected function Gets the context rendered for this exception. Overrides ElementHtmlException::getContext
ExpectationException::$driver private property
ExpectationException::$session private property
ExpectationException::getDriver protected function Returns driver.
ExpectationException::getResponseInfo protected function Returns response information string.
ExpectationException::getSession Deprecated protected function Returns exception session.
ExpectationException::pipeString protected function Prepends every line in a string with pipe (|).
ExpectationException::trimBody protected function Removes response header/footer, letting only <body /> content.
ExpectationException::trimString protected function Trims string to specified number of chars.
ExpectationException::__toString public function Returns exception message with additional context info.