Extension:MWUnit/Hooks/MWUnitShouldSkipTest

MWUnitShouldSkipTest
Available from version 2.0.0
called when determining whether a test case should be skipped
Define function:
public static function onMWUnitShouldSkipTest( TestCase &$test_case, bool &$skip, bool &$message ) { ... }
Attach hook:
$wgHooks['MWUnitShouldSkipTest'][] = 'MyExtensionHooks::onMWUnitShouldSkipTest';
Called from:File(s): MWUnit / src/Runner/BaseTestRunner.php
Function(s): shouldSkipTest

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

Details

edit
  • TestCase &$test_case: The TestCase object.
  • bool &$skip: Whether or not to skip the test case.
  • bool &$message: The message to show the user if the $skip is true.