Timo Tijhof 5c05882fde resourceloader: Disable a flaky MessageBlobStoreTest case 6 роки тому
..
data 22de17d2d5 resourceloader: Strip leading BOM when concatenating files 8 роки тому
docs 7c78f7624f Clean up ExportDemoTest 11 роки тому
includes 5c05882fde resourceloader: Disable a flaky MessageBlobStoreTest case 6 роки тому
languages d859f3441f Fix phpcs issues from LanguageConverter patches 7 роки тому
maintenance 932c37e3cb Use english messages for background use of Status::getWikiText 8 роки тому
mocks 0965bf5991 Add missing null type hints to Content::isCountable and implementations 9 роки тому
skins b5656b6953 Many more function case mismatches 9 роки тому
structure 1834ee3d8e Fix numerous class/function casing 9 роки тому
suites 3b0942a512 Autodiscover extension unittests 7 роки тому
tests 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
LessFileCompilationTest.php 3f1e9fa268 resourceloader: Tidy up RL to simplify ResourceLoaderEditToolbarModule 9 роки тому
Makefile 1fbbb8a99f tests: Remove "install" target from makefile documentation 9 роки тому
MediaWikiLangTestCase.php ecb47bfb8f phpunit: Abstract user-lang override in MediaWikiTestCase 9 роки тому
MediaWikiPHPUnitTestListener.php 58f0a7ee4e Wrap some long strings in tests/ 9 роки тому
MediaWikiTestCase.php c41da8a8ec Add AuthManager 8 роки тому
README 8ef4c130e4 Update test documentation, fix broken links 9 роки тому
ResourceLoaderTestCase.php 6e9b4f0e9c Convert all array() syntax to [] 9 роки тому
TODO 47623762fa format the tests/phpunit/TODO document for readability 10 роки тому
bootstrap.php 950368c7e8 Remove phpunit profiling. It doesn't make any sense 10 роки тому
phpunit.php 2aa1e3f5d1 Remove $wgDisableAuthManager 8 роки тому
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. 14 роки тому
suite.xml dbe3499113 Upgrade from PHPunit 3.7.x to PHPUnit 4.8.x 9 роки тому

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