MediaWiki
master
|
A class to delay execution of a parser test hooks. More...
Public Member Functions | |
__construct () | |
requireFunctionHook ($fnHook) | |
Similar to ParserTest object but does not run anything Use unleash() to really execute the hook function. | |
requireHook ($hook) | |
Similar to ParserTest object but does not run anything Use unleash() to really execute the hook. | |
reset () | |
Init/reset or forgot about the current delayed test. | |
unleash (&$parserTest) | |
Called whenever we actually want to run the hook. | |
Private Attributes | |
$fnHooks | |
$hooks | |
Initialized on construction. |
A class to delay execution of a parser test hooks.
Definition at line 539 of file testHelpers.inc.
Definition at line 545 of file testHelpers.inc.
References reset().
DelayedParserTest::requireFunctionHook | ( | $ | fnHook | ) |
Similar to ParserTest object but does not run anything Use unleash() to really execute the hook function.
Definition at line 599 of file testHelpers.inc.
DelayedParserTest::requireHook | ( | $ | hook | ) |
Similar to ParserTest object but does not run anything Use unleash() to really execute the hook.
Definition at line 592 of file testHelpers.inc.
References hooks.
Init/reset or forgot about the current delayed test.
Call to this will erase any hooks function that were pending.
Definition at line 553 of file testHelpers.inc.
References array(), and hooks.
Referenced by __construct().
DelayedParserTest::unleash | ( | &$ | parserTest | ) |
Called whenever we actually want to run the hook.
Should be the case if we found the parserTest is not disabled
Definition at line 562 of file testHelpers.inc.
DelayedParserTest::$fnHooks [private] |
Definition at line 543 of file testHelpers.inc.
DelayedParserTest::$hooks [private] |
Initialized on construction.
Definition at line 542 of file testHelpers.inc.