◆ canonicalize()
static PHPUnit\Util\Json::canonicalize |
( |
string |
$json | ) |
|
|
static |
To allow comparison of JSON strings, first process them into a consistent format so that they can be compared as strings.
- Returns
- array ($error, $canonicalized_json) The $error parameter is used to indicate an error decoding the json. This is used to avoid ambiguity with JSON strings consisting entirely of 'null' or 'false'.
◆ prettify()
static PHPUnit\Util\Json::prettify |
( |
string |
$json | ) |
|
|
static |
Prettify json string
- Exceptions
-
The documentation for this class was generated from the following file:
- vendor/phpunit/phpunit/src/Util/Json.php