Jump to content

Extension:MWUnit/Hooks/MWUnitBeforeRunTestCase

From mediawiki.org
MWUnitBeforeRunTestCase
Available from version 0.6.3
called before a test case is ran
Define function:
public static function onMWUnitBeforeRunTestCase( MWUnit\ConcreteTestCase &$test_case ) { ... }
Attach hook:
$wgHooks['MWUnitBeforeRunTestCase'][] = 'MyExtensionHooks::onMWUnitBeforeRunTestCase';
Called from:File(s): MWUnit / src/Runner/TestRun.php
Function(s): runTest

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

Details

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