X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FpreprocessorFuzzTest.php;h=3a43ae8b5c1e1015bd4f182c3087dd96edf178b7;hp=e57e977511ffecd1af716f6dfbfeb622eeb9f596;hb=fa0f6f34972c0e0f4aac24a03b3efdfc45f256f6;hpb=f79ad343f7170eecc7673fcaf32fc9229469808c diff --git a/maintenance/preprocessorFuzzTest.php b/maintenance/preprocessorFuzzTest.php index e57e977511..3a43ae8b5c 100644 --- a/maintenance/preprocessorFuzzTest.php +++ b/maintenance/preprocessorFuzzTest.php @@ -72,7 +72,7 @@ class PPFuzzTester { $passed = 'passed'; } catch ( Exception $e ) { $testReport = self::$currentTest->getReport(); - $exceptionReport = $e->getText(); + $exceptionReport = $e instanceof MWException ? $e->getText() : (string)$e; $hash = md5( $testReport ); file_put_contents( "results/ppft-$hash.in", serialize( self::$currentTest ) ); file_put_contents( "results/ppft-$hash.fail", @@ -150,6 +150,16 @@ class PPFuzzTester { class PPFuzzTest { public $templates, $mainText, $title, $entryPoint, $output; + /** @var PPFuzzTester */ + private $parent; + /** @var string */ + public $nickname; + /** @var bool */ + public $fancySig; + + /** + * @param PPFuzzTester $tester + */ function __construct( $tester ) { global $wgMaxSigChars; $this->parent = $tester;