resourceloader: Move creation addLink() function to shared mw.loader scope
[mediawiki.git] / tests / phpunit / README
blob0a32ba17e64fa04b253068dbcb9563ada9d81e60
1 == MediaWiki PHPUnit Tests ==
3 The unit tests for MediaWiki are implemented using the PHPUnit testing
4 framework and require PHPUnit to run.
7 === WARNING ===
9 Some of the unit tests are DESTRUCTIVE and WILL ALTER YOUR WIKI'S CONTENTS.
11 DO NOT RUN THESE TESTS ON A PRODUCTION SYSTEM OR ON ANY SYSTEM WHERE YOU NEED
12 TO RETAIN YOUR DATA.
15 == Installation ==
17 If PHPUnit is not installed, follow the installation instructions in the
18 PHPUnit Manual at:
20   http://www.phpunit.de/manual/current/en/installation.html
22 - or -
24 On Unix-like operating systems, run:
26   make install
29 == Running tests ==
31 The tests are run from your operating system's command line.
33 Ensure that you are in the tests/phpunit directory of your MediaWiki
34 installation.
37 On Unix-like operating systems, the tests runs are controlled with a makefile.
38 Run command:
40   make help
42 for a full list of options for running tests.
45 On Windows-family operating systems, run the 'run-tests.bat' batch file.
48 === Writing tests ===
50 A guide to writing unit tests for MediaWiki can be found at:
52         http://mediawiki.org/wiki/Unit_Testing