function assertJson

Asserts that a string is a valid JSON string.

@since Method available since Release 3.7.20

Parameters

string $filename:

string $message:

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php, line 816

Code

function assertJson($expectedJson, $message = '') {
  return call_user_func_array('PHPUnit_Framework_Assert::assertJson', func_get_args());
}