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 response text fails. Chris@0: * Chris@0: * @author Konstantin Kudryashov Chris@0: */ Chris@0: class ResponseTextException extends ExpectationException Chris@0: { Chris@0: protected function getContext() Chris@0: { Chris@0: return $this->getDriver()->getText('//html'); Chris@0: } Chris@0: }