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

Detailed Description

Constraint that asserts that the Traversable it is applied to contains a given value (using non-strict comparison).

Public Member Functions

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

Protected Member Functions

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

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Framework\Constraint\TraversableContainsEqual::__construct (   $value)

Member Function Documentation

◆ failureDescription()

PHPUnit\Framework\Constraint\TraversableContainsEqual::failureDescription (   $other)
protected

Returns the description of the failure

The beginning of failure messages is "Failed asserting that" in most cases. This method should return the second part of that sentence.

Parameters
mixed$otherevaluated value or object
Exceptions

Reimplemented from PHPUnit\Framework\Constraint\Constraint.

◆ matches()

PHPUnit\Framework\Constraint\TraversableContainsEqual::matches (   $other)
protected

Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

Parameters
mixed$othervalue or object to evaluate

Reimplemented from PHPUnit\Framework\Constraint\Constraint.

◆ toString()

PHPUnit\Framework\Constraint\TraversableContainsEqual::toString ( )

Returns a string representation of the constraint.

Exceptions

Implements PHPUnit\Framework\SelfDescribing.


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