MediaWiki
1.30.0
|
The UnitTest must be either a class that inherits from MediaWikiTestCase or a class that provides a public static suite() method which returns an PHPUnit_Framework_Test object. More...
Public Member Functions | |
__construct ( $flags) | |
setUp () | |
tearDown () | |
Static Public Member Functions | |
static | suite ( $flags=self::CORE_ONLY) |
Get a PHPUnit test suite of parser tests. More... | |
Public Attributes | |
const | CORE_ONLY = 1 |
Include files shipped with MediaWiki core. More... | |
const | NO_CORE = 2 |
Include non core files as set in $wgParserTestFiles. More... | |
const | WITH_ALL = 3 |
Include anything set via $wgParserTestFiles. More... | |
Static Protected Member Functions | |
static | debug ( $msg) |
Write $msg under log group 'tests-parser'. More... | |
Private Attributes | |
ParserTestRunner | $ptRunner |
ScopedCallback | $ptTeardownScope |
The UnitTest must be either a class that inherits from MediaWikiTestCase or a class that provides a public static suite() method which returns an PHPUnit_Framework_Test object.
Parser ParserTests Database
Definition at line 13 of file ParserTestTopLevelSuite.php.
ParserTestTopLevelSuite::__construct | ( | $flags | ) |
|
staticprotected |
Write $msg under log group 'tests-parser'.
string | $msg | Message to log |
Definition at line 157 of file ParserTestTopLevelSuite.php.
References wfDebugLog(), and wfGetCaller().
Referenced by __construct().
ParserTestTopLevelSuite::setUp | ( | ) |
Definition at line 134 of file ParserTestTopLevelSuite.php.
References $type, DB_MASTER, MediaWikiTestCase\DB_PREFIX, MediaWikiTestCase\ORA_DB_PREFIX, MediaWikiTestCase\setupTestDB(), wfDebug(), and wfGetDB().
|
static |
Get a PHPUnit test suite of parser tests.
Optionally filtered with $flags.
int | $flags | Bitwise flag to filter out the $wgParserTestFiles that will be included. Default: ParserTestTopLevelSuite::CORE_ONLY |
Definition at line 59 of file ParserTestTopLevelSuite.php.
References $flags.
Referenced by ExtensionsParserTestSuite\suite(), and CoreParserTestSuite\suite().
ParserTestTopLevelSuite::tearDown | ( | ) |
Definition at line 146 of file ParserTestTopLevelSuite.php.
References wfDebug().
|
private |
Definition at line 15 of file ParserTestTopLevelSuite.php.
|
private |
Definition at line 18 of file ParserTestTopLevelSuite.php.