Jump to content

Manual:Hooks/MediaWikiPHPUnitTest::startTest

From mediawiki.org
MediaWikiPHPUnitTest::startTest
Available from version 1.32.0 (Gerrit change 455176)
Removed in version 1.37.0 (Gerrit change 673705)
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": "MediaWiki\\Extension\\MyExtension\\Hooks::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.


Details

[edit]
  • $test: A PHPUnit_Framework_Test object

See also

[edit]