public function Framework_Constraint_JsonMatchesTest::testToString in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatchesTest.php \Framework_Constraint_JsonMatchesTest::testToString()
@covers PHPUnit_Framework_Constraint_JsonMatches::toString
File
- vendor/
phpunit/ phpunit/ tests/ Framework/ Constraint/ JsonMatchesTest.php, line 31
Class
- Framework_Constraint_JsonMatchesTest
- @since File available since Release 3.7.0
Code
public function testToString() {
$jsonValue = json_encode(array(
'Mascott' => 'Tux',
));
$constraint = new PHPUnit_Framework_Constraint_JsonMatches($jsonValue);
$this
->assertEquals('matches JSON string "' . $jsonValue . '"', $constraint
->toString());
}