You are here

public static function PHPUnit_Framework_Assert::isJson in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \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

2 calls to PHPUnit_Framework_Assert::isJson()
Framework_AssertTest::testAssertThatIsJson in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::isJson
PHPUnit_Framework_Assert::assertJson in vendor/phpunit/phpunit/src/Framework/Assert.php
Asserts that a string is a valid JSON string.

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 2452

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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