@covers PHPUnit_Framework_Assert::assertJsonStringEqualsJsonFile
public function testAssertJsonStringEqualsJsonFileExpectingExpectationFailedException() {
$file = __DIR__ . '/../_files/JsonData/simpleObject.js';
$actual = json_encode(array(
"Mascott" => "Beastie",
));
$message = '';
try {
$this
->assertJsonStringEqualsJsonFile($file, $actual, $message);
} catch (PHPUnit_Framework_ExpectationFailedException $e) {
$this
->assertEquals('Failed asserting that \'{"Mascott":"Beastie"}\' matches JSON string "{"Mascott":"Tux"}".', $e
->getMessage());
return;
}
$this
->fail('Expected Exception not thrown.');
}