MediaWiki  REL1_19
TestFileIterator Class Reference

List of all members.

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

Detailed Description

Definition at line 304 of file testHelpers.inc.


Constructor & Destructor Documentation

TestFileIterator::__construct ( file,
parserTest 
)

Definition at line 315 of file testHelpers.inc.

References $file, and $parserTest.


Member Function Documentation

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

Parameters:
$tokenString: expected token that should have been mentionned before closing this section

Definition at line 497 of file testHelpers.inc.

Referenced by readNextTest().

Here is the caller graph for this function:

Clear section name and its data.

Definition at line 483 of file testHelpers.inc.

Referenced by readNextTest().

Here is the caller graph for this function:

Definition at line 341 of file testHelpers.inc.

Definition at line 345 of file testHelpers.inc.

Definition at line 349 of file testHelpers.inc.

References readNextTest().

Referenced by rewind().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 362 of file testHelpers.inc.

References $matches, checkSection(), ParserTest\chomp(), clearSection(), and wfDebug().

Referenced by next().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 328 of file testHelpers.inc.

References next().

Here is the call graph for this function:

Definition at line 358 of file testHelpers.inc.


Member Data Documentation

TestFileIterator::$eof [private]

Definition at line 313 of file testHelpers.inc.

TestFileIterator::$fh [private]

Definition at line 306 of file testHelpers.inc.

TestFileIterator::$file [private]

Definition at line 305 of file testHelpers.inc.

Referenced by __construct().

TestFileIterator::$index = 0 [private]

Definition at line 308 of file testHelpers.inc.

TestFileIterator::$lineNum [private]

Definition at line 312 of file testHelpers.inc.

TestFileIterator::$parserTest [private]

Definition at line 307 of file testHelpers.inc.

Referenced by __construct().

TestFileIterator::$section = null [private]

Definition at line 310 of file testHelpers.inc.

TestFileIterator::$sectionData = array() [private]

String|null: current test section being analyzed.

Definition at line 311 of file testHelpers.inc.

TestFileIterator::$test [private]

Definition at line 309 of file testHelpers.inc.


The documentation for this class was generated from the following file: