Extension:MWUnit/Hooks/MWUnitGetAssertionClasses
Appearance
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
[edit]- array &$classes: The array of assertion class names (as strings) that will be registered. Any classes in this array must implement the Assertion interface.