< Extension:MWUnit < Hooks
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

  • MWUnit\ConcreteTestCase &$test_case: The TestCase object for the to be ran test case
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.