/**
  * Tests beautification of JSON.
  * Beautification of JSON should only introduce non-significant
  * whitespace changes.
  *
  * @covers efJsonBeautify
  */
 function testBeautifyJson()
 {
     $pretty = efBeautifyJson(self::UGLY_JSON);
     $this->assertJsonStringEqualsJsonString($pretty, self::UGLY_JSON);
     $this->assertContains("\n", $pretty);
 }
 /**
  * Beautifies JSON prior to save.
  * @param Title $title Title
  * @param User $user User
  * @param ParserOptions $popts
  * @return JsonSchemaContent
  */
 function preSaveTransform(Title $title, User $user, ParserOptions $popts)
 {
     return new JsonSchemaContent(efBeautifyJson($this->getNativeData()));
 }