class AssertionFailedError
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@internal This class is not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Framework\Exception extends \RuntimeException implements \PHPUnit\Exception
- class \PHPUnit\Framework\AssertionFailedError extends \PHPUnit\Framework\Exception implements \PHPUnit\Framework\SelfDescribing
Expanded class hierarchy of AssertionFailedError
3 files declare their use of AssertionFailedError
- AbstractPhpProcess.php in vendor/
phpunit/ phpunit/ src/ Util/ PHP/ AbstractPhpProcess.php - PhptTestCase.php in vendor/
phpunit/ phpunit/ src/ Runner/ PhptTestCase.php - ProphecyTrait.php in vendor/
phpspec/ prophecy-phpunit/ src/ ProphecyTrait.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ Exception/ AssertionFailedError.php, line 17
Namespace
PHPUnit\FrameworkView source
class AssertionFailedError extends Exception implements SelfDescribing {
/**
* Wrapper for getMessage() which is declared as final.
*/
public function toString() : string {
return $this->getMessage();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
AssertionFailedError::toString | public | function | Wrapper for getMessage() which is declared as final. | Overrides SelfDescribing::toString | |
Exception::$serializableTrace | protected | property | |||
Exception::getSerializableTrace | public | function | Returns the serializable trace (without 'args'). | ||
Exception::__construct | public | function | 30 | ||
Exception::__sleep | public | function |