Manual:Teste de unidade PHP

Jump to navigation Jump to search
This page is a translated version of the page Manual:PHP unit testing and the translation is 61% complete.
Other languages:
Deutsch • ‎English • ‎français • ‎português • ‎português do Brasil • ‎中文 • ‎日本語
MediaWiki Flower
« Unit testing
PHPUnit testing


We do unit testing of MediaWiki's PHP code base using the PHPUnit framework. Veja a nossa cobertura de testes.

Core MediaWiki PHP unit tests are in the tests/phpunit directory. The directory structure roughly matches that of the code being tested. For example: you can find the unit tests for file includes/libs/IP.php in tests/phpunit/unit/includes/libs/IPTest.php.

Extensions often have tests in a tests subdirectory.

Use the navigation table or the links below to browse through this manual, or begin your journey by installing PHPUnit.