Available from version 1.32.0 (Gerrit change 455176)
Removed in version 1.37.0
Occurs when a MediaWiki PHPUnit test has ended.
Define function:
public static function onMediaWikiPHPUnitTest_endTest( PHPUnit_Framework_Test $test, float $time ) { ... }
Attach hook: In extension.json:
	"Hooks": {
		"MediaWikiPHPUnitTest::endTest": "MyExtensionHooks::onMediaWikiPHPUnitTestendTest"
Called from: File(s): ../tests/phpunit/MediaWikiPHPUnitTestListener.php
Function(s): endTest
Interface: MediaWikiPHPUnitTest__endTestHook.php

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


  • $test: A PHPUnit_Framework_Test object
  • $time: A value of the scalar type, float

See alsoEdit