Documentation

ExpectationFailedException extends AssertionFailedError
in package

FinalYes

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.

Tags
no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

Table of Contents

Properties

$comparisonFailure  : ComparisonFailure|null

Methods

__construct()  : mixed
getComparisonFailure()  : ComparisonFailure|null

Properties

Methods

On this page

Search results