public static function PHPUnit_Framework_Assert::isJson

Returns a PHPUnit_Framework_Constraint_IsJson matcher object.

@since Method available since Release 3.7.20

Return value

PHPUnit_Framework_Constraint_IsJson

1 call to PHPUnit_Framework_Assert::isJson()
PHPUnit_Framework_Assert::assertJson in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php
Asserts that a string is a valid JSON string.

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function isJson() {
  return new PHPUnit_Framework_Constraint_IsJson();
}