You are here

public function Framework_Constraint_JsonMatchesTest::testEvaluate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatchesTest.php \Framework_Constraint_JsonMatchesTest::testEvaluate()

@dataProvider evaluateDataprovider @covers PHPUnit_Framework_Constraint_JsonMatches::evaluate @covers PHPUnit_Framework_Constraint_JsonMatches::matches @covers PHPUnit_Framework_Constraint_JsonMatches::__construct

File

vendor/phpunit/phpunit/tests/Framework/Constraint/JsonMatchesTest.php, line 22

Class

Framework_Constraint_JsonMatchesTest
@since File available since Release 3.7.0

Code

public function testEvaluate($expected, $jsonOther, $jsonValue) {
  $constraint = new PHPUnit_Framework_Constraint_JsonMatches($jsonValue);
  $this
    ->assertEquals($expected, $constraint
    ->evaluate($jsonOther, '', true));
}