dan nessett 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.
> 
> I tried to find documentation on how to run the tests without success. If I 
> simply haven't looked in the right place, a quick pointer to the appropriate 
> instructions would be great. Otherwise, I wonder if someone could instruct me 
> how to run them.
> 
> Thanks,
> 
> Dan

Perhaps you're running it with an old php version?
You need php5 to run it. On some setups the php binary is php 4 and the
php 5 cli is under the php5 name.
Run php -v to find out which version is being executed. Try to run them
with "php5 parserTests.php" if it wasn't php 5.


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to