Manual:PHP unit testing

Introduction
We do unit testing of MediaWiki's PHP code base using the PHPUnit framework.

Core MediaWiki PHP unit tests are in the  directory. The directory structure roughly matches that of the code being testing. For example: you can find the unit tests for file  in .

Extensions often have tests in a tests subdirectory.

Use the navigation table along this text to browse through this manual or begin your journey by installing PHPUnit.