< Extension:MWUnit < Hooks
MWUnitGetAssertionClasses | |
---|---|
Available from version 0.9.4 called when the list of assertions classes is retrieved; can be used to add new assertions to MWUnit |
|
Define function: | public static function onMWUnitGetAssertionClasses( array &$classes ) { ... }
|
Attach hook: | $wgHooks['MWUnitGetAssertionClasses'][] = 'MyExtensionHooks::onMWUnitGetAssertionClasses';
|
Called from: | File(s): MWUnit / src/Factory/AssertionFactory.php Function(s): getAssertionClasses |
For more information about attaching hooks, see Manual:Hooks
For examples of other extensions using this hook, see Category:MWUnitGetAssertionClasses extensions.
Details
- array &$classes: The array of assertion class names (as strings) that will be registered. Any classes in this array must implement the Assertion interface.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.