MediaWiki
REL1_24
|
Definition at line 6 of file StatusTest.php.
StatusTest::getMockMessage | ( | $ | key = 'key' , |
$ | params = array() |
||
) | [protected] |
Definition at line 192 of file StatusTest.php.
Referenced by getMockMessages(), testMerge(), and testMergeWithOverwriteValue().
StatusTest::getMockMessages | ( | $ | messageDetails | ) | [protected] |
array | $messageDetails | E.g. array( 'KEY' => array(/PARAMS/) ) |
Definition at line 209 of file StatusTest.php.
References $key, $messages, array(), as, and getMockMessage().
Referenced by testErrorWithMessage(), testFatalWithMessage(), and testWarningWithMessage().
static StatusTest::provideCleanParams | ( | ) | [static] |
Definition at line 288 of file StatusTest.php.
static StatusTest::provideGetMessage | ( | ) | [static] |
Definition at line 399 of file StatusTest.php.
References array(), and Status\warning().
static StatusTest::provideGetWikiTextAndHtml | ( | ) | [static] |
Definition at line 327 of file StatusTest.php.
References array().
static StatusTest::provideIsGood | ( | ) | [static] |
Definition at line 116 of file StatusTest.php.
References array().
static StatusTest::provideIsOk | ( | ) | [static] |
Definition at line 89 of file StatusTest.php.
References array().
static StatusTest::provideMockMessageDetails | ( | ) | [static] |
Definition at line 217 of file StatusTest.php.
References array().
static StatusTest::provideNonObjectMessages | ( | ) | [static] |
Definition at line 566 of file StatusTest.php.
References array().
static StatusTest::provideSetResult | ( | ) | [static] |
Definition at line 70 of file StatusTest.php.
References array().
static StatusTest::provideValues | ( | ) | [static] |
Definition at line 24 of file StatusTest.php.
References array().
Definition at line 8 of file StatusTest.php.
StatusTest::testCleanParams | ( | $ | cleanCallback, |
$ | params, | ||
$ | expected | ||
) |
provideCleanParams Status::cleanParams
Definition at line 279 of file StatusTest.php.
References $params.
StatusTest::testErrorWithMessage | ( | $ | mockDetails | ) |
provideMockMessageDetails Status::error Status::getErrorsArray Status::getStatusArray
Definition at line 153 of file StatusTest.php.
References $key, $messages, array(), as, and getMockMessages().
StatusTest::testFatalWithMessage | ( | $ | mockDetails | ) |
provideMockMessageDetails Status::fatal Status::getErrorsArray Status::getStatusArray
Definition at line 175 of file StatusTest.php.
References $key, $messages, array(), as, and getMockMessages().
Definition at line 475 of file StatusTest.php.
Definition at line 492 of file StatusTest.php.
Definition at line 520 of file StatusTest.php.
References $error, Status\error(), Status\getErrorsByType(), and Status\warning().
StatusTest::testGetHtml | ( | Status $ | status, |
$ | wikitext, | ||
$ | html | ||
) |
provideGetWikiTextAndHtml Status::getHtml
It is possible to mock such methods but only if namespaces are used.
Definition at line 318 of file StatusTest.php.
References $html, and Status\getHTML().
StatusTest::testGetMessage | ( | Status $ | status, |
$ | expectedParams = array() , |
||
$ | expectedKey | ||
) |
provideGetMessage Status::getMessage
Definition at line 386 of file StatusTest.php.
References Status\getMessage().
StatusTest::testGetStatusArrayWithNonObjectMessages | ( | $ | nonObjMsg | ) |
provideNonObjectMessages Status::getStatusArray
Definition at line 552 of file StatusTest.php.
References Status\getWarningsArray(), and Status\warning().
Definition at line 99 of file StatusTest.php.
StatusTest::testGetWikiText | ( | Status $ | status, |
$ | wikitext, | ||
$ | html | ||
) |
provideGetWikiTextAndHtml Status::getWikiText
Definition at line 306 of file StatusTest.php.
References Status\getWikiText().
StatusTest::testIsGood | ( | $ | ok, |
$ | errors, | ||
$ | expected | ||
) |
StatusTest::testIsOk | ( | $ | ok | ) |
StatusTest::testNewGood | ( | $ | value = null | ) |
provideValues Status::newGood
Definition at line 17 of file StatusTest.php.
References $value, and Status\newGood().
Definition at line 461 of file StatusTest.php.
References array(), Status\error(), and Status\replaceMessage().
StatusTest::testSetResult | ( | $ | ok, |
$ | value = null |
||
) |
provideSetResult Status::setResult
Definition at line 63 of file StatusTest.php.
Definition at line 539 of file StatusTest.php.
References $value, and Status\__wakeup().
StatusTest::testWarningWithMessage | ( | $ | mockDetails | ) |
provideMockMessageDetails Status::warning Status::getWarningsArray Status::getStatusArray
Definition at line 131 of file StatusTest.php.
References $key, $messages, array(), as, and getMockMessages().