MediaWiki  REL1_22
HooksTest Class Reference
Inheritance diagram for HooksTest:
Collaboration diagram for HooksTest:

List of all members.

Public Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.
 testFalseReturn ()
 testFatalError ()
 FatalError
 testNewStyleHookInteraction ()
 testNewStyleHooks ($msg, $hook, $expectedFoo, $expectedBar)
 provideHooks
 testOldStyleHooks ($msg, array $hook, $expectedFoo, $expectedBar)
 provideHooks
 testUncallableFunction ()
 MWException

Static Public Member Functions

static provideHooks ()

Detailed Description

Definition at line 3 of file HooksTest.php.


Member Function Documentation

static HooksTest::provideHooks ( ) [static]

Definition at line 12 of file HooksTest.php.

References array().

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 5 of file HooksTest.php.

References $wgHooks, Hooks\clear(), and global.

HooksTest::testNewStyleHooks ( msg,
hook,
expectedFoo,
expectedBar 
)

provideHooks

Definition at line 53 of file HooksTest.php.

References array(), Hooks\register(), and MediaWikiTestCase\run().

HooksTest::testOldStyleHooks ( msg,
array hook,
expectedFoo,
expectedBar 
)

provideHooks

Definition at line 39 of file HooksTest.php.

References $wgHooks, array(), global, and wfRunHooks().


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