Extension:MWUnit/Hooks/MWUnitShouldMarkRisky
Appearance
MWUnitShouldMarkRisky | |
---|---|
Available from version 2.0.0 called when determining whether a test case should be marked as risky |
|
Define function: | public static function onMWUnitShouldMarkRisky( TestCase &$test_case, bool &$risky, bool &$message ) { ... }
|
Attach hook: | $wgHooks['MWUnitShouldMarkRisky'][] = 'MyExtensionHooks::onMWUnitShouldMarkRisky';
|
Called from: | File(s): MWUnit / src/Runner/BaseTestRunner.php Function(s): shouldMarkRisky |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:MWUnitShouldMarkRisky extensions.
Details
[edit]- TestCase &$test_case: The TestCase object.
- bool &$risky: Whether or not to mark the test case as risky.
- bool &$message: The message to show the user if the $risky is true.