class PHPUnit_Framework_ExpectationFailedException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/ExpectationFailedException.php \PHPUnit_Framework_ExpectationFailedException
Exception for expectations which failed their check.
The exception contains the error message and optionally a SebastianBergmann\Comparator\ComparisonFailure which is used to generate diff output of the failed expectations.
@since Class available since Release 3.0.0
Hierarchy
- class \PHPUnit_Framework_Exception extends \RuntimeException implements PHPUnit_Exception
Expanded class hierarchy of PHPUnit_Framework_ExpectationFailedException
1 string reference to 'PHPUnit_Framework_ExpectationFailedException'
- Framework_MockObject_Matcher_ConsecutiveParametersTest::testIntegrationExpectingException in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObject/ Matcher/ ConsecutiveParametersTest.php
File
- vendor/
phpunit/ phpunit/ src/ Framework/ ExpectationFailedException.php, line 20
View source
class PHPUnit_Framework_ExpectationFailedException extends PHPUnit_Framework_AssertionFailedError {
/**
* @var SebastianBergmann\Comparator\ComparisonFailure
*/
protected $comparisonFailure;
public function __construct($message, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = null, Exception $previous = null) {
$this->comparisonFailure = $comparisonFailure;
parent::__construct($message, 0, $previous);
}
/**
* @return SebastianBergmann\Comparator\ComparisonFailure
*/
public function getComparisonFailure() {
return $this->comparisonFailure;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PHPUnit_Framework_AssertionFailedError:: |
public | function |
Wrapper for getMessage() which is declared as final. Overrides PHPUnit_Framework_SelfDescribing:: |
|
PHPUnit_Framework_Exception:: |
protected | property | ||
PHPUnit_Framework_Exception:: |
public | function | Returns the serializable trace (without 'args'). | |
PHPUnit_Framework_Exception:: |
public | function | ||
PHPUnit_Framework_Exception:: |
public | function | 1 | |
PHPUnit_Framework_ExpectationFailedException:: |
protected | property | ||
PHPUnit_Framework_ExpectationFailedException:: |
public | function | ||
PHPUnit_Framework_ExpectationFailedException:: |
public | function |
Overrides PHPUnit_Framework_Exception:: |