You are here

public function Framework_AssertTest::testAssertJsonStringEqualsJsonString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/AssertTest.php \Framework_AssertTest::testAssertJsonStringEqualsJsonString()

@covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonString

File

vendor/phpunit/phpunit/tests/Framework/AssertTest.php, line 3750

Class

Framework_AssertTest
@since Class available since Release 2.0.0

Code

public function testAssertJsonStringEqualsJsonString() {
  $expected = '{"Mascott" : "Tux"}';
  $actual = '{"Mascott" : "Tux"}';
  $message = 'Given Json strings do not match';
  $this
    ->assertJsonStringEqualsJsonString($expected, $actual, $message);
}