Jump to content

Extension:MWUnit/Hooks/MWUnitBeforeInitializeBaseTestRunner

From mediawiki.org
MWUnitBeforeInitializeBaseTestRunner
Available from version 2.0.0
called right before a new BaseTestRunner object is initialized
Define function:
public static function onMWUnitBeforeInitializeBaseTestRunner( TestCase &$test_case, TestClass &$test_class ) { ... }
Attach hook:
$wgHooks['MWUnitBeforeInitializeBaseTestRunner'][] = 'MyExtensionHooks::onMWUnitBeforeInitializeBaseTestRunner';
Called from:File(s): MWUnit / src/Runner/TestClassRunner.php
Function(s): runTestCase

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

Details

[edit]
  • TestCase &$test_case: TestCase object of the test that is about to be run.
  • TestClass &$test_class: TestClass object the given TestCase is in.