MediaWiki
1.23.2
|
Public Member Functions | |
__construct ( $file, $parserTest) | |
current () | |
key () | |
next () | |
readNextTest () | |
rewind () | |
valid () | |
Private Member Functions | |
checkSection ( $tokens, $fatal=true) | |
Verify the current section data has some value for the given token name(s) (first parameter). More... | |
clearSection () | |
Clear section name and its data. More... | |
Private Attributes | |
$eof | |
$fh | |
$file | |
$index = 0 | |
$lineNum | |
$parserTest | |
$section = null | |
$sectionData = array() | |
String|null: current test section being analyzed. More... | |
$test | |
Definition at line 352 of file testHelpers.inc.
TestFileIterator::__construct | ( | $file, | |
$parserTest | |||
) |
Definition at line 364 of file testHelpers.inc.
References $file, $parserTest, and file.
|
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
$token | String|Array: expected token(s) that should have been mentioned before closing this section |
$fatal | Boolean: true iff an exception should be thrown if the section is not found. |
Definition at line 553 of file testHelpers.inc.
References $sectionData, array(), file, and section.
Referenced by readNextTest().
|
private |
Clear section name and its data.
Definition at line 536 of file testHelpers.inc.
References array(), and section.
Referenced by readNextTest().
TestFileIterator::current | ( | ) |
Definition at line 390 of file testHelpers.inc.
References $test.
TestFileIterator::key | ( | ) |
Definition at line 394 of file testHelpers.inc.
References $index.
TestFileIterator::next | ( | ) |
TestFileIterator::readNextTest | ( | ) |
Definition at line 411 of file testHelpers.inc.
References $line, $matches, $section, array(), as, checkSection(), clearSection(), section, and wfDebug().
Referenced by next().
TestFileIterator::rewind | ( | ) |
Definition at line 377 of file testHelpers.inc.
References next().
TestFileIterator::valid | ( | ) |
Definition at line 407 of file testHelpers.inc.
|
private |
Definition at line 362 of file testHelpers.inc.
|
private |
Definition at line 354 of file testHelpers.inc.
|
private |
Definition at line 353 of file testHelpers.inc.
Referenced by __construct().
|
private |
Definition at line 356 of file testHelpers.inc.
Referenced by key().
|
private |
Definition at line 361 of file testHelpers.inc.
|
private |
Definition at line 355 of file testHelpers.inc.
Referenced by __construct().
|
private |
Definition at line 358 of file testHelpers.inc.
Referenced by readNextTest().
|
private |
String|null: current test section being analyzed.
Definition at line 360 of file testHelpers.inc.
Referenced by checkSection().
|
private |
Definition at line 357 of file testHelpers.inc.
Referenced by current().