MediaWiki REL1_30
|
Public Member Functions | |
provideCheck () | |
testArray ( $data, $expect) | |
MWRestrictions::newFromArray MWRestrictions::__construct MWRestrictions::loadFromArray MWRestrictions::toArray provideArray. | |
testCheck ( $request, $expect) | |
MWRestrictions::check provideCheck. | |
testCheckIP ( $ip, $pass) | |
MWRestrictions::checkIP provideCheckIP. | |
testJson ( $json, $expect) | |
MWRestrictions::newFromJson MWRestrictions::__construct MWRestrictions::loadFromArray MWRestrictions::toJson MWRestrictions::__toString provideJson. | |
testNewDefault () | |
MWRestrictions::newDefault MWRestrictions::__construct. | |
Static Public Member Functions | |
static | provideArray () |
static | provideCheckIP () |
static | provideJson () |
static | setUpBeforeClass () |
Static Protected Attributes | |
static | $restrictionsForChecks |
Definition at line 2 of file MWRestrictionsTest.php.
|
static |
Definition at line 54 of file MWRestrictionsTest.php.
References true.
MWRestrictionsTest::provideCheck | ( | ) |
Definition at line 178 of file MWRestrictionsTest.php.
|
static |
Definition at line 157 of file MWRestrictionsTest.php.
|
static |
Definition at line 110 of file MWRestrictionsTest.php.
|
static |
Definition at line 6 of file MWRestrictionsTest.php.
References MWRestrictions\newFromArray().
MWRestrictionsTest::testArray | ( | $data, | |
$expect ) |
MWRestrictions::newFromArray MWRestrictions::__construct MWRestrictions::loadFromArray MWRestrictions::toArray provideArray.
array | $data | |
bool | InvalidArgumentException | $expect | True if the call succeeds, otherwise the exception that should be thrown. |
Definition at line 39 of file MWRestrictionsTest.php.
References $ret, and MWRestrictions\newFromArray().
MWRestrictionsTest::testCheck | ( | $request, | |
$expect ) |
MWRestrictions::check provideCheck.
WebRequest | $request | |
Status | $expect |
Definition at line 174 of file MWRestrictionsTest.php.
MWRestrictionsTest::testCheckIP | ( | $ip, | |
$pass ) |
MWRestrictions::checkIP provideCheckIP.
string | $ip | |
bool | $pass |
Definition at line 153 of file MWRestrictionsTest.php.
MWRestrictionsTest::testJson | ( | $json, | |
$expect ) |
MWRestrictions::newFromJson MWRestrictions::__construct MWRestrictions::loadFromArray MWRestrictions::toJson MWRestrictions::__toString provideJson.
string | $json | |
array | InvalidArgumentException | $expect |
Definition at line 87 of file MWRestrictionsTest.php.
References $ret, and MWRestrictions\newFromJson().
MWRestrictionsTest::testNewDefault | ( | ) |
MWRestrictions::newDefault MWRestrictions::__construct.
Definition at line 20 of file MWRestrictionsTest.php.
References $ret, and MWRestrictions\newDefault().
|
staticprotected |
Definition at line 4 of file MWRestrictionsTest.php.