class ResponseTextException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Exception/ResponseTextException.php \Behat\Mink\Exception\ResponseTextException
Exception thrown when an expectation on the response text fails.
@author Konstantin Kudryashov <ever.zet@gmail.com>
Hierarchy
- class \Behat\Mink\Exception\Exception
- class \Behat\Mink\Exception\Exception
- class \Behat\Mink\Exception\ExpectationException
- class \Behat\Mink\Exception\ResponseTextException
- class \Behat\Mink\Exception\ExpectationException
- class \Behat\Mink\Exception\Exception
Expanded class hierarchy of ResponseTextException
2 files declare their use of ResponseTextException
- ResponseTextExceptionTest.php in vendor/
behat/ mink/ tests/ Exception/ ResponseTextExceptionTest.php - WebAssert.php in vendor/
behat/ mink/ src/ WebAssert.php
File
- vendor/
behat/ mink/ src/ Exception/ ResponseTextException.php, line 18
Namespace
Behat\Mink\ExceptionView source
class ResponseTextException extends ExpectationException {
protected function getContext() {
return $this
->getDriver()
->getText('//html');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExpectationException:: |
private | property | ||
ExpectationException:: |
private | property | ||
ExpectationException:: |
protected | function | Returns driver. | |
ExpectationException:: |
protected | function | Returns response information string. | |
ExpectationException:: |
protected | function | Returns exception session. | |
ExpectationException:: |
protected | function | Prepends every line in a string with pipe (|). | |
ExpectationException:: |
protected | function | Removes response header/footer, letting only <body /> content. | |
ExpectationException:: |
protected | function | Trims string to specified number of chars. | |
ExpectationException:: |
public | function | Initializes exception. | 2 |
ExpectationException:: |
public | function | Returns exception message with additional context info. | |
ResponseTextException:: |
protected | function |
Gets the context rendered for this exception. Overrides ExpectationException:: |