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
コード例 #1
0
ファイル: Expect.php プロジェクト: jpkleemans/phpunit-expect
 /**
  * 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;
 }
コード例 #2
0
ファイル: StringMatcher.php プロジェクト: dekeysoft/pu-tester
 public function isNotEqualToJsonString($string)
 {
     Assert::assertJsonStringNotEqualsJsonString($string, $this->actual, $this->description);
     return $this;
 }
コード例 #3
0
ファイル: Functions.php プロジェクト: raul1234587/phpunit
/**
 * 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 = '');
}