Manual:Hooks/MediaWikiPHPUnitTest::startTest

MediaWikiPHPUnitTest::startTest
Available from version 1.32.0 (Gerrit change 455176)
Occurs when a MediaWiki PHPUnit test has started.
Define function:
public static function onMediaWikiPHPUnitTest_startTest( PHPUnit_Framework_Test $test ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"MediaWikiPHPUnitTest::startTest": "MyExtensionHooks::onMediaWikiPHPUnitTeststartTest"
	}
}
Called from:File(s): ../tests/phpunit/MediaWikiPHPUnitTestListener.php
Function(s): startTest
Interface:MediaWikiPHPUnitTest__startTestHook.php

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

DetailsEdit

  • $test: A PHPUnit_Framework_Test object

See alsoEdit