/**
  * Given wgLogExceptionBacktrace is false
  * then serialized exception SHOULD NOT have a backtrace
  *
  * @covers MWExceptionHandler::jsonSerializeException
  */
 public function testJsonserializeexceptionBacktracingDisabled()
 {
     $this->setMwGlobals(array('wgLogExceptionBacktrace' => false));
     $json = json_decode(MWExceptionHandler::jsonSerializeException(new Exception()));
     $this->assertObjectNotHasAttribute('backtrace', $json);
 }