Manual:PHP unit testing
MediaWiki core's PHP unit and integration tests are in the
When adding new tests, unit tests should be placed in
tests/phpunit/unit and integration tests should be placed in
The directory structure roughly matches that of the code being tested.
For example: you can find the unit tests for file
Extensions have PHPUnit tests in a
tests subdirectory, ideally also using subdirectories to separate unit and integration tests.
Use the navigation table or the links below to browse through this manual.