function TraversableContains::toString
Returns a string representation of the constraint.
Overrides SelfDescribing::toString
1 call to TraversableContains::toString()
- TraversableContains::failureDescription in vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ Traversable/ TraversableContains.php - Returns the description of the failure.
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ Traversable/ TraversableContains.php, line 31
Class
- TraversableContains
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Framework\ConstraintCode
public function toString(bool $exportObjects = false) : string {
return 'contains ' . Exporter::export($this->value, $exportObjects);
}