Jump to content

Extension:MWUnit/Hooks/MWUnitBeforeFirstTest

From mediawiki.org
MWUnitBeforeFirstTest
Available from version ???
called before the first test is ran; the tests will not be run if false is returned
Define function:
public static function onMWUnitBeforeFirstTest( TestSuite &$test_suite ) { ... }
Attach hook:
$wgHooks['MWUnitBeforeFirstTest'][] = 'MyExtensionHooks::onMWUnitBeforeFirstTest';
Called from:File(s): MWUnit / src/Runner/TestSuiteRunner.php
Function(s): run

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

Details

[edit]
  • TestSuite &$test_suite: TestSuite that is about to be run.