From 9886f73324890e4da8b728d762a26ee8d4a33473 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 7 Nov 2010 18:38:34 +0000 Subject: [PATCH] Set $ok at the beginning of the function; this variable is missing is case of failure in setupDatabase() --- maintenance/tests/parser/parserTest.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/maintenance/tests/parser/parserTest.inc b/maintenance/tests/parser/parserTest.inc index 381c265e86..03aaa48051 100644 --- a/maintenance/tests/parser/parserTest.inc +++ b/maintenance/tests/parser/parserTest.inc @@ -337,6 +337,7 @@ class ParserTest { * @return Boolean: true if passed all tests, false if any tests failed. */ public function runTestsFromFiles( $filenames ) { + $ok = false; $GLOBALS['wgContLang'] = Language::factory( 'en' ); $this->recorder->start(); try { -- 2.20.1