MediaWiki
REL1_24
|
Public Member Functions | |
__construct ($file, $parserTest) | |
current () | |
key () | |
next () | |
readNextTest () | |
rewind () | |
setupCurrentTest () | |
valid () | |
Private Member Functions | |
checkSection ($tokens, $fatal=true) | |
Verify the current section data has some value for the given token name(s) (first parameter). | |
clearSection () | |
Clear section name and its data. | |
Private Attributes | |
$delayedParserTest | |
$eof | |
$fh | |
$file | |
$index = 0 | |
$lineNum | |
$nextSubTest = 0 | |
ParserTest MediaWikiParserTest | $parserTest |
An instance of ParserTest (parserTests.php) or MediaWikiParserTest (phpunit) | |
$section = null | |
$sectionData = array() | |
String|null: current test section being analyzed. | |
$test |
Definition at line 366 of file testHelpers.inc.
TestFileIterator::__construct | ( | $ | file, |
$ | parserTest | ||
) |
Definition at line 385 of file testHelpers.inc.
References $file, $parserTest, and file.
TestFileIterator::checkSection | ( | $ | tokens, |
$ | fatal = true |
||
) | [private] |
Verify the current section data has some value for the given token name(s) (first parameter).
Throw an exception if it is not set, referencing current section and adding the current file name and line number
string | array | $tokens | Expected token(s) that should have been mentioned before closing this section |
bool | $fatal | True iff an exception should be thrown if the section is not found. |
Definition at line 621 of file testHelpers.inc.
Referenced by readNextTest(), and setupCurrentTest().
TestFileIterator::clearSection | ( | ) | [private] |
Clear section name and its data.
Definition at line 603 of file testHelpers.inc.
Referenced by readNextTest().
Definition at line 412 of file testHelpers.inc.
Definition at line 416 of file testHelpers.inc.
Definition at line 489 of file testHelpers.inc.
References $delayedParserTest, $matches, array(), as, checkSection(), ParserTest\chomp(), clearSection(), section, and setupCurrentTest().
Referenced by next().
Definition at line 399 of file testHelpers.inc.
References next().
Definition at line 433 of file testHelpers.inc.
References $result, array(), checkSection(), ParserTest\chomp(), and wfDebug().
Referenced by readNextTest().
Definition at line 429 of file testHelpers.inc.
TestFileIterator::$delayedParserTest [private] |
Definition at line 382 of file testHelpers.inc.
Referenced by readNextTest().
TestFileIterator::$eof [private] |
Definition at line 379 of file testHelpers.inc.
TestFileIterator::$fh [private] |
Definition at line 368 of file testHelpers.inc.
TestFileIterator::$file [private] |
Definition at line 367 of file testHelpers.inc.
Referenced by __construct().
TestFileIterator::$index = 0 [private] |
Definition at line 373 of file testHelpers.inc.
TestFileIterator::$lineNum [private] |
Definition at line 378 of file testHelpers.inc.
TestFileIterator::$nextSubTest = 0 [private] |
Definition at line 383 of file testHelpers.inc.
ParserTest MediaWikiParserTest TestFileIterator::$parserTest [private] |
An instance of ParserTest (parserTests.php) or MediaWikiParserTest (phpunit)
Definition at line 372 of file testHelpers.inc.
Referenced by __construct().
TestFileIterator::$section = null [private] |
Definition at line 375 of file testHelpers.inc.
TestFileIterator::$sectionData = array() [private] |
String|null: current test section being analyzed.
Definition at line 377 of file testHelpers.inc.
TestFileIterator::$test [private] |
Definition at line 374 of file testHelpers.inc.