wiki.techinc.nl/tests/phpunit
Umherirrender e38e3d1c49 rdbms: Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation.

Once the sniff is enabled it avoids that new code is missing type
declarations. This is focused on documentation and does not change code.

Change-Id: I9e5330601ded043ad24a99932fe3fa0ea6c427aa
2024-09-11 21:24:59 +02:00
..
data Test checkComposerLockUpToDate.php 2024-08-29 20:18:39 +00:00
docs
includes Merge "Test alltrans.php and dumpMessages.php" 2024-09-11 18:27:46 +00:00
integration/includes Merge "UserOptionsManager: Allow global prefs for users without local accounts" 2024-09-10 18:22:53 +00:00
maintenance Merge "Fix broken deleteSelfExternals.php and test it" 2024-09-11 18:57:37 +00:00
mocks Merge "Test alltrans.php and dumpMessages.php" 2024-09-11 18:27:46 +00:00
structure Fix specifying messages with params as arrays in API documentation 2024-08-21 13:26:02 +00:00
suites
tests tests: Use const for some static data in test files 2024-09-01 23:24:11 +02:00
unit rdbms: Add missing documentation to class properties 2024-09-11 21:24:59 +02:00
bootstrap.common.php
bootstrap.integration.php
bootstrap.maintenance.php
bootstrap.php
DynamicPropertyTestHelper.php
getPHPUnitExtensionsAndSkins.php
HamcrestPHPUnitIntegration.php
MediaWikiCoversValidator.php
MediaWikiDeprecatedConfigPHPUnitExtension.php
MediaWikiGroupValidator.php
MediaWikiIntegrationTestCase.php objectcache: Remove WinCache support 2024-09-05 17:59:26 +00:00
MediaWikiLangTestCase.php
MediaWikiLoggerPHPUnitExtension.php
MediaWikiPHPUnitResultPrinter.php
MediaWikiTeardownPHPUnitExtension.php
MediaWikiTestCaseTrait.php Merge "tests: Disallow using setFakeTime() in PHPUnit data providers" 2024-08-20 22:43:19 +00:00
MediaWikiUnitTestCase.php
MWTestDox.php
phpunit.php
README.md
ResourceLoaderTestCase.php Resourceloader: Enable methods that stores and retrieves dependency during test 2024-09-04 20:15:03 +00:00
suite.xml
TestSelectQueryBuilder.php

MediaWiki PHPUnit tests

WARNING: Integration tests may be destructive and alter or remove parts of your local database. We try to use temporary tables where possible, but you must never run tests on a production server or on a wiki where you don't want to lose data.

Running tests

If you haven't already, run composer update (specifically without --no-dev) in the MediaWiki core directory. This will install PHPUnit.

To read about how to run specific tests, refer to:

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

Writing tests

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

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