r68554 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68553‎ | r68554 | r68555 >
Date:05:55, 25 June 2010
Author:maxsem
Status:ok
Tags:
Comment:
Fixes for r68544: fixed notices, added phpunit.bat to duplicate the functionality on Windows
Modified paths:
  • /trunk/phase3/maintenance/parserTests.inc (modified) (history)
  • /trunk/phase3/maintenance/parserTestsParserHook.php (modified) (history)
  • /trunk/phase3/maintenance/tests/phpunit.bat (added) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.inc
@@ -1143,7 +1143,7 @@
11441144 return "$display\n$caret";
11451145 }
11461146
1147 - function getFakeTimestamp( &$parser, &$ts ) {
 1147+ static function getFakeTimestamp( &$parser, &$ts ) {
11481148 $ts = 123;
11491149 return true;
11501150 }
Index: trunk/phase3/maintenance/tests/phpunit.bat
@@ -0,0 +1 @@
 2+@php phpunit
\ No newline at end of file
Index: trunk/phase3/maintenance/parserTestsParserHook.php
@@ -19,7 +19,7 @@
2020 return true;
2121 }
2222
23 - function hook( $in, $argv ) {
 23+ static function hook( $in, $argv ) {
2424 ob_start();
2525 var_dump(
2626 $in,

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r68544* Removed require/require_once from maintenance scripts where possible, repla...tstarling02:55, 25 June 2010

Status & tagging log