MediaWiki  REL1_24
DelayedParserTest Class Reference

A class to delay execution of a parser test hooks. More...

List of all members.

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.
 requireTransparentHook ($hook)
 Similar to ParserTest object but does not run anything Use unleash() to really execute the hook function.
 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.
 $transparentHooks

Detailed Description

A class to delay execution of a parser test hooks.

Definition at line 667 of file testHelpers.inc.


Constructor & Destructor Documentation

Definition at line 674 of file testHelpers.inc.

References reset().


Member Function Documentation

Similar to ParserTest object but does not run anything Use unleash() to really execute the hook function.

Parameters:
string$fnHook

Definition at line 742 of file testHelpers.inc.

Similar to ParserTest object but does not run anything Use unleash() to really execute the hook.

Parameters:
string$hook

Definition at line 733 of file testHelpers.inc.

Similar to ParserTest object but does not run anything Use unleash() to really execute the hook function.

Parameters:
string$hook

Definition at line 751 of file testHelpers.inc.

Init/reset or forgot about the current delayed test.

Call to this will erase any hooks function that were pending.

Definition at line 682 of file testHelpers.inc.

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

Parameters:
ParserTest | NewParserTest$parserTest
Returns:
bool

Definition at line 694 of file testHelpers.inc.


Member Data Documentation

DelayedParserTest::$fnHooks [private]

Definition at line 671 of file testHelpers.inc.

DelayedParserTest::$hooks [private]

Initialized on construction.

Definition at line 670 of file testHelpers.inc.

DelayedParserTest::$transparentHooks [private]

Definition at line 672 of file testHelpers.inc.


The documentation for this class was generated from the following file: