Manual:PHP unit testing

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

MediaWiki unit tests are located in the tests/phpunit directory.

Tests are organized into a directory structure that roughly matches the directory structure of the code that they are testing. For example: you can find the unit tests for file includes/IP.php in tests/phpunit/includes/IPTest.php.

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