wiki.techinc.nl/tests/phpunit
Petr Pchelko 06bfc74034 Hard deprecate Revision::getRevisionText() method
Bug: T198343
Depends-On: Ibc943d757b97c144296e7116c1f9caf944c7f345
Depends-On: Ic799aa2dbe26de2e0cbe2be6218341a44ae051e8
Change-Id: I13b737b33b087d92f8ce86a34de6ca0931baa222
2019-10-07 11:31:20 -07:00
..
data tests: Nuke everything HHVM-related 2019-10-05 12:51:07 -07:00
docs
documentation
includes Hard deprecate Revision::getRevisionText() method 2019-10-07 11:31:20 -07:00
integration/includes Merge "Drop strings for wgExternalDiffEngine, deprecated in 1.27 and 1.32" 2019-10-05 22:14:16 +00:00
languages tests: Prefer PHPUnit's assertSame() when comparing empty strings 2019-09-20 15:27:58 +00:00
maintenance Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
mocks Use varargs for MessageLocalizer::msg and similar 2019-10-05 17:47:49 +00:00
skins Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08:00
structure tests: Replace PHPUnit's loose assertEquals(false) with assertFalse() 2019-10-04 00:30:36 +00:00
suites Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
tests Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
unit/includes Add optional serialization_type and hmac_key param values to RESTBagOStuff 2019-10-06 15:52:01 -05:00
bootstrap.maintenance.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
bootstrap.php phpunit: Repair GLOBALS reset in MediaWikiUnitTestCase 2019-09-02 20:58:34 +01:00
HamcrestPHPUnitIntegration.php
LessFileCompilationTest.php
Makefile
MediaWikiCoversValidator.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
MediaWikiGroupValidator.php
MediaWikiIntegrationTestCase.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
MediaWikiLangTestCase.php
MediaWikiLoggerPHPUnitTestListener.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
MediaWikiPHPUnitCommand.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
MediaWikiPHPUnitResultPrinter.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
MediaWikiPHPUnitTestListener.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
MediaWikiTestCaseTrait.php Add assertFileContains to MediaWikiTestCaseTrait 2019-09-17 17:24:33 +02:00
MediaWikiTestResult.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
MediaWikiTestRunner.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
MediaWikiUnitTestCase.php HHVM removal: Kill HHVM_VERSION checks in PHPUnit tests 2019-10-03 15:35:21 +00:00
phpunit.php tests: Nuke everything HHVM-related 2019-10-05 12:51:07 -07:00
PHPUnit4And6Compat.php PHPUnit4And6Compat tweaks 2019-10-04 19:28:38 -07:00
README
ResourceLoaderTestCase.php resourceloader: Reduce width of module hash from 7 chars to 5 2019-09-02 01:25:48 +00:00
run-tests.bat
suite.xml

== MediaWiki PHPUnit Tests ==

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


=== WARNING ===

Some of the integration 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