You are here

public function PHPUnit_Framework_Constraint_JsonMatches::toString in Zircon Profile 8

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

Returns a string representation of the object.

Return value

string

Overrides PHPUnit_Framework_SelfDescribing::toString

File

vendor/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php, line 63

Class

PHPUnit_Framework_Constraint_JsonMatches
Asserts whether or not two JSON objects are equal.

Code

public function toString() {
  return sprintf('matches JSON string "%s"', $this->value);
}