wiki.techinc.nl/tests/phpunit
Thiemo Mättig 1ade7ff45b Remove unused method parameters from TestBagOStuff
This is a test mock exclusively used in tests. All code I'm removing here
is unused and neither needed nor covered by any test.

Change-Id: Ifd010c49973460f6fbb2cd83f8fd63488f5fd291
2018-01-30 11:04:45 -05:00
..
data Add more data to categories dump 2018-01-17 00:40:16 +00:00
docs
includes Remove unused method parameters from TestBagOStuff 2018-01-30 11:04:45 -05:00
languages Remove various redundant '@license' tags in file headers 2018-01-12 18:15:11 +00:00
maintenance Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
mocks Remove @param comments that literally repeat what the code says 2018-01-10 14:14:26 +01:00
skins Add @covers tags to miscellaneous tests (#2) 2017-12-28 08:52:48 +00:00
structure Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
suites Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
tests Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
autoload.ide.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
bootstrap.php
LessFileCompilationTest.php
Makefile
MediaWikiCoversValidator.php Verify that all @covers tags are sane when running tests 2017-12-29 20:19:12 +00:00
MediaWikiLangTestCase.php
MediaWikiPHPUnitTestListener.php
MediaWikiTestCase.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
phpunit.php
README
ResourceLoaderTestCase.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01: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 you used composer to install MediaWiki's dependencies PHPUnit will already be available, unless
you explicitly specified the --no-dev flag during the install. In this case just run "composer update".

Otherwise follow the installation instructions in the
PHPUnit Manual at:

  https://phpunit.de/manual/current/en/installation.html


== 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 PHP unit tests for MediaWiki can be found at:

	https://www.mediawiki.org/wiki/Manual:PHP_unit_testing