file-fetcher
All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Protected Member Functions | List of all members
PHPUnit\Framework\Constraint\Composite Class Reference
Inheritance diagram for PHPUnit\Framework\Constraint\Composite:
PHPUnit\Framework\Constraint\Constraint PHPUnit\Framework\SelfDescribing PHPUnit\Framework\Constraint\Attribute

Detailed Description

Deprecated:
https://github.com/sebastianbergmann/phpunit/issues/3338 @codeCoverageIgnore

Public Member Functions

 __construct (Constraint $innerConstraint)
 
 evaluate ($other, string $description='', bool $returnResult=false)
 
 count ()
 
- Public Member Functions inherited from PHPUnit\Framework\SelfDescribing
 toString ()
 

Protected Member Functions

 innerConstraint ()
 
- Protected Member Functions inherited from PHPUnit\Framework\Constraint\Constraint
 exporter ()
 
 matches ($other)
 
 fail ($other, $description, ComparisonFailure $comparisonFailure=null)
 
 additionalFailureDescription ($other)
 
 failureDescription ($other)
 

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Framework\Constraint\Composite::__construct ( Constraint  $innerConstraint)

Member Function Documentation

◆ count()

PHPUnit\Framework\Constraint\Composite::count ( )

Counts the number of constraint elements.

Reimplemented from PHPUnit\Framework\Constraint\Constraint.

◆ evaluate()

PHPUnit\Framework\Constraint\Composite::evaluate (   $other,
string  $description = '',
bool  $returnResult = false 
)

Evaluates the constraint for parameter $other

If $returnResult is set to false (the default), an exception is thrown in case of a failure. null is returned otherwise.

If $returnResult is true, the result of the evaluation is returned as a boolean value instead: true in case of success, false in case of a failure.

Exceptions
ExpectationFailedException

Reimplemented from PHPUnit\Framework\Constraint\Constraint.

Reimplemented in PHPUnit\Framework\Constraint\Attribute.

◆ innerConstraint()

PHPUnit\Framework\Constraint\Composite::innerConstraint ( )
protected

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