wiki.techinc.nl/tests/phpunit
2014-08-20 06:40:11 +00:00
..
data Add unit tests for ffmpeg2theora ogg recognition bug 2014-07-04 04:53:22 -03:00
docs
includes Merge "Add missing @param to function docs" 2014-08-20 06:40:11 +00:00
languages Fixes Algerian messages file so it does not convert to Arabic digits. 2014-08-07 09:47:39 +01:00
maintenance Correct variable names in @param to match method declarations 2014-08-13 21:48:28 +02:00
mocks Add missing @param to function docs 2014-08-18 16:24:59 +00:00
skins
structure resourceloader: Allow skins to provide additional styles for any module 2014-07-29 00:53:41 +02:00
suites Remove deprecated class StubContLang 2014-07-22 22:07:04 -07:00
tests
bootstrap.php
install-phpunit.sh
LessFileCompilationTest.php includes/resourceloader/: Use Config instead of globals 2014-08-07 18:47:34 +01:00
Makefile
MediaWikiLangTestCase.php
MediaWikiPHPUnitTestListener.php Move debug-tests out of MediaWikiPHPUnitCommand 2014-08-02 21:34:34 +00:00
MediaWikiTestCase.php Override phpunit assertTag method to stop errors 2014-08-17 21:41:18 +00:00
phpunit.php Fixed spacing 2014-08-04 11:51:22 +02:00
README
ResourceLoaderTestCase.php Add tests for OutputPage::makeResourceLoaderLink() 2014-07-05 04:25:58 -07:00
run-tests.bat
suite.xml
TODO

== MediaWiki PHPUnit Tests ==

The unit tests for MediaWiki are implemented using the PHPUnit testing
framework and require PHPUnit to run.


=== WARNING ===

Some of the unit tests are DESTRUCTIVE and WILL ALTER YOUR WIKI'S CONTENTS.

DO NOT RUN THESE TESTS ON A PRODUCTION SYSTEM OR ON ANY SYSTEM WHERE YOU NEED
TO RETAIN YOUR DATA.


== Installation ==

If PHPUnit is not installed, follow the installation instructions in the
PHPUnit Manual at:

  http://www.phpunit.de/manual/current/en/installation.html

- or -

On Unix-like operating systems, run:

  make install


== Running tests ==

The tests are run from your operating system's command line.

Ensure that you are in the tests/phpunit directory of your MediaWiki
installation.


On Unix-like operating systems, the tests runs are controlled with a makefile.
Run command:

  make help

for a full list of options for running tests.


On Windows-family operating systems, run the 'run-tests.bat' batch file.


=== Writing tests ===

A guide to writing unit tests for MediaWiki can be found at:

	http://mediawiki.org/wiki/Unit_Testing