MediaWiki
REL1_24
|
Public Member Functions | |
provideTextUseOutputPage () | |
provideUseMessageCache () | |
testisCommandLine ($expected, $wgCommandLineMode) | |
provideIsCommandLine MWException::isCommandLine | |
testIsLogable () | |
MWException::isLoggable | |
testJsonserializeexceptionBacktracingDisabled () | |
Given wgLogExceptionBacktrace is false then serialized exception SHOULD NOT have a backtrace. | |
testJsonserializeexceptionBacktracingEnabled () | |
Given wgLogExceptionBacktrace is true then serialized exception SHOULD have a backtrace. | |
testJsonserializeexceptionKeys ($expectedKeyType, $exClass, $key) | |
Lame JSON schema validation. | |
testJsonSerializeExceptions ($exception_class) | |
Verify the exception classes are JSON serializabe. | |
testMwexceptionThrowing () | |
MWException | |
testRunHooks ($wgExceptionHooks, $name, $args, $expectedReturn) | |
provideRunHooks MWException::runHooks | |
testUseMessageCache ($expected, $wgLang) | |
provideUseMessageCache MWException::useMessageCache | |
testUseOutputPage ($expected, $wgLang, $wgFullyInitialised, $wgOut) | |
provideTextUseOutputPage MWException::useOutputPage | |
Static Public Member Functions | |
static | mockHook () |
Used in conjunction with provideRunHooks and testRunHooks as a mock callback for a hook. | |
static | provideExceptionClasses () |
static | provideIsCommandLine () |
static | provideJsonSerializedKeys () |
Returns test cases: exception class, key name, gettype() | |
static | provideRunHooks () |
Private Member Functions | |
getMockLanguage () |
Definition at line 9 of file MWExceptionTest.php.
MWExceptionTest::getMockLanguage | ( | ) | [private] |
Definition at line 45 of file MWExceptionTest.php.
Referenced by provideTextUseOutputPage(), and provideUseMessageCache().
static MWExceptionTest::mockHook | ( | ) | [static] |
Used in conjunction with provideRunHooks and testRunHooks as a mock callback for a hook.
Definition at line 113 of file MWExceptionTest.php.
static MWExceptionTest::provideExceptionClasses | ( | ) | [static] |
Definition at line 158 of file MWExceptionTest.php.
References array().
static MWExceptionTest::provideIsCommandLine | ( | ) | [static] |
Definition at line 137 of file MWExceptionTest.php.
References array().
static MWExceptionTest::provideJsonSerializedKeys | ( | ) | [static] |
Returns test cases: exception class, key name, gettype()
Definition at line 195 of file MWExceptionTest.php.
static MWExceptionTest::provideRunHooks | ( | ) | [static] |
Definition at line 90 of file MWExceptionTest.php.
References array().
Definition at line 33 of file MWExceptionTest.php.
References array(), and getMockLanguage().
Definition at line 63 of file MWExceptionTest.php.
References array(), and getMockLanguage().
MWExceptionTest::testisCommandLine | ( | $ | expected, |
$ | wgCommandLineMode | ||
) |
provideIsCommandLine MWException::isCommandLine
Definition at line 129 of file MWExceptionTest.php.
References $e, $wgCommandLineMode, array(), and MediaWikiTestCase\setMwGlobals().
Given wgLogExceptionBacktrace is false then serialized exception SHOULD NOT have a backtrace.
MWExceptionHandler::jsonSerializeException
Definition at line 232 of file MWExceptionTest.php.
References array(), MWExceptionHandler\jsonSerializeException(), and MediaWikiTestCase\setMwGlobals().
Given wgLogExceptionBacktrace is true then serialized exception SHOULD have a backtrace.
MWExceptionHandler::jsonSerializeException
Definition at line 218 of file MWExceptionTest.php.
References array(), MWExceptionHandler\jsonSerializeException(), and MediaWikiTestCase\setMwGlobals().
MWExceptionTest::testJsonserializeexceptionKeys | ( | $ | expectedKeyType, |
$ | exClass, | ||
$ | key | ||
) |
Lame JSON schema validation.
MWExceptionHandler::jsonSerializeException
string | $expectedKeyType | Type expected as returned by gettype() |
string | $exClass | An exception class (ie: Exception, MWException) |
string | $key | Name of the key to validate in the serialized JSON provideJsonSerializedKeys |
Definition at line 175 of file MWExceptionTest.php.
References $key, array(), MWExceptionHandler\jsonSerializeException(), and MediaWikiTestCase\setMwGlobals().
MWExceptionTest::testJsonSerializeExceptions | ( | $ | exception_class | ) |
Verify the exception classes are JSON serializabe.
MWExceptionHandler::jsonSerializeException provideExceptionClasses
Definition at line 150 of file MWExceptionTest.php.
References MWExceptionHandler\jsonSerializeException().
Definition at line 14 of file MWExceptionTest.php.
MWExceptionTest::testRunHooks | ( | $ | wgExceptionHooks, |
$ | name, | ||
$ | args, | ||
$ | expectedReturn | ||
) |
provideRunHooks MWException::runHooks
Definition at line 82 of file MWExceptionTest.php.
References $e, $name, array(), and MediaWikiTestCase\setMwGlobals().
MWExceptionTest::testUseMessageCache | ( | $ | expected, |
$ | wgLang | ||
) |
provideUseMessageCache MWException::useMessageCache
Definition at line 55 of file MWExceptionTest.php.
References $e, $wgLang, array(), and MediaWikiTestCase\setMwGlobals().
MWExceptionTest::testUseOutputPage | ( | $ | expected, |
$ | wgLang, | ||
$ | wgFullyInitialised, | ||
$ | wgOut | ||
) |
provideTextUseOutputPage MWException::useOutputPage
Definition at line 22 of file MWExceptionTest.php.
References $e, $wgFullyInitialised, $wgLang, $wgOut, array(), and MediaWikiTestCase\setMwGlobals().