assertJsonStringNotEqualsJsonString() public static method

Asserts that two given JSON encoded objects or arrays are not equal.
public static assertJsonStringNotEqualsJsonString ( string $expectedJson, string $actualJson, string $message = '' )
$expectedJson string
$actualJson string
$message string
Esempio n. 1
0
 /**
  * Expect that two given JSON encoded objects or arrays are not equal.
  *
  * @param string $expectedJson
  * @param string $message
  *
  * @return Expect
  */
 public function notToEqualJson($expectedJson, $message = '')
 {
     Assert::assertJsonStringNotEqualsJsonString($expectedJson, $this->value, $message);
     return $this;
 }
Esempio n. 2
0
 public function isNotEqualToJsonString($string)
 {
     Assert::assertJsonStringNotEqualsJsonString($string, $this->actual, $this->description);
     return $this;
 }
Esempio n. 3
0
/**
 * Asserts that two given JSON encoded objects or arrays are not equal.
 *
 * @param string $expectedJson
 * @param string $actualJson
 * @param string $message
 * @since Method available since Release 3.7.0
 */
function assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = '')
{
    return PHPUnit_Framework_Assert::assertJsonStringNotEqualsJsonString($expectedJson, $actualJson, $message = '');
}