MediaWiki  master
MediaWiki\Hook\UnitTestsListHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 9 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: