MediaWiki
REL1_21
|
Public Member Functions | |
__construct ($file, $parserTest) | |
current () | |
key () | |
next () | |
readNextTest () | |
rewind () | |
valid () | |
Private Member Functions | |
checkSection ($token) | |
Verify the current section data has some value for the given token name (first parameter). | |
clearSection () | |
Clear section name and its data. | |
Private Attributes | |
$eof | |
$fh | |
$file | |
$index = 0 | |
$lineNum | |
$parserTest | |
$section = null | |
$sectionData = array() | |
String|null: current test section being analyzed. | |
$test |
Definition at line 323 of file testHelpers.inc.
TestFileIterator::__construct | ( | $ | file, |
$ | parserTest | ||
) |
Definition at line 335 of file testHelpers.inc.
References $file, $parserTest, and file.
TestFileIterator::checkSection | ( | $ | token | ) | [private] |
Verify the current section data has some value for the given token name (first parameter).
Throw an exception if it is not set, referencing current section and adding the current file name and line number
$token | String: expected token that should have been mentionned before closing this section |
Definition at line 519 of file testHelpers.inc.
References file.
Referenced by readNextTest().
TestFileIterator::clearSection | ( | ) | [private] |
Clear section name and its data.
Definition at line 505 of file testHelpers.inc.
References array().
Referenced by readNextTest().
Definition at line 361 of file testHelpers.inc.
Definition at line 365 of file testHelpers.inc.
Definition at line 382 of file testHelpers.inc.
References $matches, array(), as, checkSection(), ParserTest\chomp(), clearSection(), and wfDebug().
Referenced by next().
Definition at line 348 of file testHelpers.inc.
References next().
Definition at line 378 of file testHelpers.inc.
TestFileIterator::$eof [private] |
Definition at line 333 of file testHelpers.inc.
TestFileIterator::$fh [private] |
Definition at line 325 of file testHelpers.inc.
TestFileIterator::$file [private] |
Definition at line 324 of file testHelpers.inc.
Referenced by __construct().
TestFileIterator::$index = 0 [private] |
Definition at line 327 of file testHelpers.inc.
TestFileIterator::$lineNum [private] |
Definition at line 332 of file testHelpers.inc.
TestFileIterator::$parserTest [private] |
Definition at line 326 of file testHelpers.inc.
Referenced by __construct().
TestFileIterator::$section = null [private] |
Definition at line 329 of file testHelpers.inc.
TestFileIterator::$sectionData = array() [private] |
String|null: current test section being analyzed.
Definition at line 331 of file testHelpers.inc.
TestFileIterator::$test [private] |
Definition at line 328 of file testHelpers.inc.