From: Max Semenik Date: Fri, 25 Jun 2010 05:55:11 +0000 (+0000) Subject: Fixes for r68544: fixed notices, added phpunit.bat to duplicate the functionality... X-Git-Tag: 1.31.0-rc.0~36394 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=ea979e811756b6fc049195f97d25a45a2f2b41e0;p=lhc%2Fweb%2Fwiklou.git Fixes for r68544: fixed notices, added phpunit.bat to duplicate the functionality on Windows --- 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