You are here

public function PHPUnit_Framework_Constraint_ArraySubset::toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php \PHPUnit_Framework_Constraint_ArraySubset::toString()

Returns a string representation of the constraint.

Return value

string

Overrides PHPUnit_Framework_SelfDescribing::toString

1 call to PHPUnit_Framework_Constraint_ArraySubset::toString()
PHPUnit_Framework_Constraint_ArraySubset::failureDescription in vendor/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php
Returns the description of the failure

File

vendor/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php, line 65

Class

PHPUnit_Framework_Constraint_ArraySubset
Constraint that asserts that the array it is evaluated for has a specified subset.

Code

public function toString() {
  return 'has the subset ' . $this->exporter
    ->export($this->subset);
}