Timo Tijhof 5c05882fde resourceloader: Disable a flaky MessageBlobStoreTest case %!s(int64=6) %!d(string=hai) anos
..
data 22de17d2d5 resourceloader: Strip leading BOM when concatenating files %!s(int64=8) %!d(string=hai) anos
docs 7c78f7624f Clean up ExportDemoTest %!s(int64=11) %!d(string=hai) anos
includes 5c05882fde resourceloader: Disable a flaky MessageBlobStoreTest case %!s(int64=6) %!d(string=hai) anos
languages d859f3441f Fix phpcs issues from LanguageConverter patches %!s(int64=7) %!d(string=hai) anos
maintenance 932c37e3cb Use english messages for background use of Status::getWikiText %!s(int64=8) %!d(string=hai) anos
mocks 0965bf5991 Add missing null type hints to Content::isCountable and implementations %!s(int64=9) %!d(string=hai) anos
skins b5656b6953 Many more function case mismatches %!s(int64=9) %!d(string=hai) anos
structure 1834ee3d8e Fix numerous class/function casing %!s(int64=9) %!d(string=hai) anos
suites 3b0942a512 Autodiscover extension unittests %!s(int64=7) %!d(string=hai) anos
tests 6e9b4f0e9c Convert all array() syntax to [] %!s(int64=9) %!d(string=hai) anos
LessFileCompilationTest.php 3f1e9fa268 resourceloader: Tidy up RL to simplify ResourceLoaderEditToolbarModule %!s(int64=9) %!d(string=hai) anos
Makefile 1fbbb8a99f tests: Remove "install" target from makefile documentation %!s(int64=9) %!d(string=hai) anos
MediaWikiLangTestCase.php ecb47bfb8f phpunit: Abstract user-lang override in MediaWikiTestCase %!s(int64=9) %!d(string=hai) anos
MediaWikiPHPUnitTestListener.php 58f0a7ee4e Wrap some long strings in tests/ %!s(int64=9) %!d(string=hai) anos
MediaWikiTestCase.php c41da8a8ec Add AuthManager %!s(int64=8) %!d(string=hai) anos
README 8ef4c130e4 Update test documentation, fix broken links %!s(int64=9) %!d(string=hai) anos
ResourceLoaderTestCase.php 6e9b4f0e9c Convert all array() syntax to [] %!s(int64=9) %!d(string=hai) anos
TODO 47623762fa format the tests/phpunit/TODO document for readability %!s(int64=10) %!d(string=hai) anos
bootstrap.php 950368c7e8 Remove phpunit profiling. It doesn't make any sense %!s(int64=10) %!d(string=hai) anos
phpunit.php 2aa1e3f5d1 Remove $wgDisableAuthManager %!s(int64=8) %!d(string=hai) anos
run-tests.bat 23f69f10ed Per wikitech-l discussion: Move tests from maintenance/tests/ to tests/. They're not strictly maintenance scripts, and some people want to do a selective checkout that doesn't include the tests. There's still debate on whether we should include these in the release downloads, but we had a pretty firm consensus to move this. %!s(int64=14) %!d(string=hai) anos
suite.xml dbe3499113 Upgrade from PHPunit 3.7.x to PHPUnit 4.8.x %!s(int64=9) %!d(string=hai) anos

README

== 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