From ea979e811756b6fc049195f97d25a45a2f2b41e0 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Fri, 25 Jun 2010 05:55:11 +0000 Subject: [PATCH] Fixes for r68544: fixed notices, added phpunit.bat to duplicate the functionality on Windows --- maintenance/parserTests.inc | 2 +- maintenance/parserTestsParserHook.php | 2 +- maintenance/tests/phpunit.bat | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 maintenance/tests/phpunit.bat diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 18ffb34971..4248f4d4d8 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -1143,7 +1143,7 @@ class ParserTest { return "$display\n$caret"; } - function getFakeTimestamp( &$parser, &$ts ) { + static function getFakeTimestamp( &$parser, &$ts ) { $ts = 123; return true; } diff --git a/maintenance/parserTestsParserHook.php b/maintenance/parserTestsParserHook.php index 53b7c98f35..f260850766 100644 --- a/maintenance/parserTestsParserHook.php +++ b/maintenance/parserTestsParserHook.php @@ -19,7 +19,7 @@ class ParserTestParserHook { return true; } - function hook( $in, $argv ) { + static function hook( $in, $argv ) { ob_start(); var_dump( $in, diff --git a/maintenance/tests/phpunit.bat b/maintenance/tests/phpunit.bat new file mode 100644 index 0000000000..c7234c11db --- /dev/null +++ b/maintenance/tests/phpunit.bat @@ -0,0 +1 @@ +@php phpunit \ No newline at end of file -- 2.20.1