file-fetcher
Public Member Functions | Protected Attributes | List of all members
PHPUnit\Framework\ExpectationFailedException Class Reference
Inheritance diagram for PHPUnit\Framework\ExpectationFailedException:
PHPUnit\Framework\AssertionFailedError PHPUnit\Framework\Exception PHPUnit\Framework\SelfDescribing PHPUnit\Exception

Detailed Description

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.

Public Member Functions

 __construct (string $message, ComparisonFailure $comparisonFailure=null, \Exception $previous=null)
 
 getComparisonFailure ()
 
- Public Member Functions inherited from PHPUnit\Framework\AssertionFailedError
 toString ()
 
- Public Member Functions inherited from PHPUnit\Framework\Exception
 __construct ($message='', $code=0, \Throwable $previous=null)
 
 __toString ()
 
 __sleep ()
 
 getSerializableTrace ()
 

Protected Attributes

 $comparisonFailure
 
- Protected Attributes inherited from PHPUnit\Framework\Exception
 $serializableTrace
 

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Framework\ExpectationFailedException::__construct ( string  $message,
ComparisonFailure  $comparisonFailure = null,
\Exception  $previous = null 
)

Member Function Documentation

◆ getComparisonFailure()

PHPUnit\Framework\ExpectationFailedException::getComparisonFailure ( )

Member Data Documentation

◆ $comparisonFailure

PHPUnit\Framework\ExpectationFailedException::$comparisonFailure
protected

The documentation for this class was generated from the following file: