MediaWiki  master
MediaWiki\Hook\UnitTestsListHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\UnitTestsListHook:

Public Member Functions

 onUnitTestsList (&$paths)
 This hook is called when building a list of paths containing PHPUnit tests. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UnitTestsList" to register handlers implementing this interface.

Stable to implement

Definition at line 12 of file UnitTestsListHook.php.

Member Function Documentation

◆ onUnitTestsList()

MediaWiki\Hook\UnitTestsListHook::onUnitTestsList ( $paths)

This hook is called when building a list of paths containing PHPUnit tests.

Since 1.24, paths pointing to a directory will be recursively scanned for test case files matching the suffix "Test.php".

Since
1.35
Parameters
array&$pathsList of test cases and directories to search
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: