Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Behat\Mink\Exception; Chris@0: Chris@0: /** Chris@0: * Exception thrown when an expectation on the text of an element fails. Chris@0: * Chris@0: * @author Konstantin Kudryashov Chris@0: */ Chris@0: class ElementTextException extends ElementHtmlException Chris@0: { Chris@0: protected function getContext() Chris@0: { Chris@0: return $this->element->getText(); Chris@0: } Chris@0: }