MediaWiki  REL1_24
IPSetTest Class Reference

IPSet More...

Inheritance diagram for IPSetTest:
Collaboration diagram for IPSetTest:

List of all members.

Public Member Functions

 testIPSet ($desc, array $cfg, array $tests)
 Validates IPSet loading and matching code.

Static Public Member Functions

static provideIPSets ()
 Provides test cases for IPSetTest::testIPSet.

Detailed Description

IPSet

Definition at line 6 of file IPSetTest.php.


Member Function Documentation

static IPSetTest::provideIPSets ( ) [static]

Provides test cases for IPSetTest::testIPSet.

Returns an array of test cases. Each case is an array of (description, config, tests). Description is just text output for failure messages, config is an array constructor argument for IPSet, and the tests are an array of IP => expected (boolean) result against the config dataset.

Definition at line 15 of file IPSetTest.php.

References array().

IPSetTest::testIPSet ( desc,
array cfg,
array tests 
)

Validates IPSet loading and matching code.

IPSet provideIPSets

Definition at line 245 of file IPSetTest.php.

References $result, and as.


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