Version 1
[yaffs-website] / vendor / behat / mink / src / Exception / ResponseTextException.php
1 <?php
2
3 /*
4  * This file is part of the Mink package.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Mink\Exception;
12
13 /**
14  * Exception thrown when an expectation on the response text fails.
15  *
16  * @author Konstantin Kudryashov <ever.zet@gmail.com>
17  */
18 class ResponseTextException extends ExpectationException
19 {
20     protected function getContext()
21     {
22         return $this->getDriver()->getText('//html');
23     }
24 }