You are here

function assertJson in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert/Functions.php \assertJson()

Asserts that a string is a valid JSON string.

@since Method available since Release 3.7.20

Parameters

string $actualJson:

string $message:

File

vendor/phpunit/phpunit/src/Framework/Assert/Functions.php, line 815

Code

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