Definition at line 22 of file TestFileReader.php.
◆ __construct()
TestFileReader::__construct |
( |
| $file, |
|
|
| $options ) |
|
private |
◆ addArticle()
TestFileReader::addArticle |
( |
| $name, |
|
|
| $text, |
|
|
| $line ) |
|
private |
◆ addCurrentTest()
TestFileReader::addCurrentTest |
( |
| ) |
|
|
private |
◆ addRequirement()
TestFileReader::addRequirement |
( |
| $type, |
|
|
| $name ) |
|
private |
◆ checkSection()
TestFileReader::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
- Parameters
-
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. |
- Returns
- bool|string
- Exceptions
-
Definition at line 282 of file TestFileReader.php.
References $sectionData, and $tokens.
Referenced by addCurrentTest(), and execute().
◆ clearSection()
TestFileReader::clearSection |
( |
| ) |
|
|
private |
◆ execute()
TestFileReader::execute |
( |
| ) |
|
|
private |
◆ read()
static TestFileReader::read |
( |
| $file, |
|
|
array | $options = [] ) |
|
static |
◆ $articles
TestFileReader::$articles = [] |
|
private |
◆ $fh
◆ $file
◆ $lineNum
TestFileReader::$lineNum = 0 |
|
private |
◆ $regex
◆ $requirements
TestFileReader::$requirements = [] |
|
private |
◆ $runDisabled
TestFileReader::$runDisabled |
|
private |
◆ $runParsoid
TestFileReader::$runParsoid |
|
private |
◆ $section
TestFileReader::$section = null |
|
private |
◆ $sectionData
TestFileReader::$sectionData = [] |
|
private |
◆ $sectionLineNum
TestFileReader::$sectionLineNum = [] |
|
private |
◆ $tests
TestFileReader::$tests = [] |
|
private |
The documentation for this class was generated from the following file: