public static function PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString

Asserts that two given JSON encoded objects or arrays are not equal.

Parameters

string $expectedJson:

string $actualJson:

string $message:

2 calls to PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString()
Framework_AssertTest::testAssertJsonStringNotEqualsJsonString in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString
Framework_AssertTest::testAssertJsonStringNotEqualsJsonStringErrorRaised in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@dataProvider validInvalidJsonDataprovider @covers PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = '') {
  self::assertJson($expectedJson, $message);
  self::assertJson($actualJson, $message);
  $expected = json_decode($expectedJson);
  $actual = json_decode($actualJson);
  self::assertNotEquals($expected, $actual, $message);
}