4 * This file is part of the Mink package.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Mink\Exception;
14 * Exception thrown when an expectation on the response text fails.
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 class ResponseTextException extends ExpectationException
20 protected function getContext()
22 return $this->getDriver()->getText('//html');