|
| | __construct ($value, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false) |
| |
| | toString () |
| |
| | evaluate ($other, $description='', $returnResult=false) |
| |
| | count () |
| |
|
|
| $checkForObjectIdentity |
| |
|
| $checkForNonObjectIdentity |
| |
|
| $value |
| |
|
| $exporter |
| |
Constraint that asserts that the Traversable it is applied to contains a given value.
◆ __construct()
| PHPUnit\Framework\Constraint\TraversableContains::__construct |
( |
|
$value, |
|
|
|
$checkForObjectIdentity = true, |
|
|
|
$checkForNonObjectIdentity = false |
|
) |
| |
- Parameters
-
| mixed | $value | |
| bool | $checkForObjectIdentity | |
| bool | $checkForNonObjectIdentity | |
- Exceptions
-
◆ failureDescription()
| PHPUnit\Framework\Constraint\TraversableContains::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 | $other | Evaluated value or object. |
- Returns
- string
Reimplemented from PHPUnit\Framework\Constraint\Constraint.
◆ matches()
| PHPUnit\Framework\Constraint\TraversableContains::matches |
( |
|
$other | ) |
|
|
protected |
Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.
- Parameters
-
| mixed | $other | Value or object to evaluate. |
- Returns
- bool
Reimplemented from PHPUnit\Framework\Constraint\Constraint.
◆ toString()
| PHPUnit\Framework\Constraint\TraversableContains::toString |
( |
| ) |
|
The documentation for this class was generated from the following file:
- vendor/phpunit/phpunit/src/Framework/Constraint/TraversableContains.php