Manual:Hooks/UnitTestsList

From MediaWiki.org
Jump to: navigation, search
UnitTestsList
Available from version 1.17.0 (r68673)
Allows extensions to extend core's PHPUnit test suite

Define function:
public static function onUnitTestsList( array &$files ) { ... }

Attach hook:
$wgHooks['UnitTestsList'][] = 'MyExtensionHooks::onUnitTestsList';
Called from: ExtensionsTestSuite.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UnitTestsList extensions.

Allows to centralize the execution of unit tests. Extensions can append names of files containing their tests to $files.

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox