Manual:PHP unit testing

Introduction
We do man>Special:MyLanguage/Manual:Unit testing|unit testing of MediaWiki's PHP code base using the PHPUnit framework. [https://integration.wikimedia.org/cover/mediawiki-core/ View our test coverage. ]

Core MediaWiki PHP unit tests are in the   directory.

The directory structure roughly matches that of the code being tested.

For example: you can find the unit tests for file   in  .

Extensions often have tests in a   subdirectory.

Use the navigation table or the links below to browse through this manual, or begin your journey by man>Special:MyLanguage/Manual:PHP unit testing/Installing PHPUnit|installing PHPUnit.