On Fri, Jul 10, 2009 at 3:59 PM, dan nessett<dnessett(a)yahoo.com> wrote:
I have been struggling to figure out how to run the parser tests. From the very limited
documentation in the code, it appears you are supposed to run them from a terminal.
However, when I cd to the maintenance directory and type "php parserTests.php" I
get the following error message.
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or
`T_VAR' or `'}'' in
/Users/dnessett/Sites/Mediawiki/maintenance/parserTests.inc on line 43
Either there is some setup necessary that I haven't done; parserTests.php is not the
appropriate "top-level" target for the execution; you are not supposed to run
these tests from the terminal; or there is something else I am doing wrong.
You're running them correctly. It sounds like your installation is
broken. Please say exactly what version of MediaWiki you're using
(from Special:Version), and make sure that parserTests.inc was
correctly copied from the download. Paste line 43 and the surrounding
lines here.