Extension:MWUnit/Hooks/MWUnitBeforeRegisterTestCase

MWUnitBeforeRegisterTestCase
Available from version 0.6.3
Removed in version 0.14
called before a test case is registered; cancels the registration if false is returned
Define function:
public static function onMWUnitBeforeRegisterTestCase( MWUnit\ConcreteTestCase &$test_case ) { ... }
Attach hook:
$wgHooks['MWUnitBeforeRegisterTestCase'][] = 'MyExtensionHooks::onMWUnitBeforeRegisterTestCase';
Called from:File(s): MWUnit / src/TestCaseRepository.php
Function(s): register

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

Details

edit
  • MWUnit\ConcreteTestCase &$test_case: The TestCase object for the to be registered test case