public function teardown() { global $wgHooks; // restore hooks that force custom rendering if ($this->savedContentGetParserOutput !== null) { $wgHooks['ContentGetParserOutput'] = $this->savedContentGetParserOutput; } parent::teardown(); }