Definition at line 22 of file TestFileReader.php.
TestFileReader::__construct |
( |
|
$file, |
|
|
|
$options |
|
) |
| |
|
private |
TestFileReader::addArticle |
( |
|
$name, |
|
|
|
$text, |
|
|
|
$line |
|
) |
| |
|
private |
TestFileReader::addCurrentTest |
( |
| ) |
|
|
private |
TestFileReader::addRequirement |
( |
|
$type, |
|
|
|
$name |
|
) |
| |
|
private |
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 277 of file TestFileReader.php.
References $sectionData, $tokens, file, and use.
Referenced by addCurrentTest(), and execute().
TestFileReader::clearSection |
( |
| ) |
|
|
private |
TestFileReader::execute |
( |
| ) |
|
|
private |
Definition at line 161 of file TestFileReader.php.
References $line, $lineNum, $matches, $section, addArticle(), addCurrentTest(), addRequirement(), as, checkSection(), ParserTestRunner\chomp(), and clearSection().
static TestFileReader::read |
( |
|
$file, |
|
|
array |
$options = [] |
|
) |
| |
|
static |
TestFileReader::$articles = [] |
|
private |
TestFileReader::$lineNum = 0 |
|
private |
TestFileReader::$requirements = [] |
|
private |
TestFileReader::$runDisabled |
|
private |
TestFileReader::$runParsoid |
|
private |
TestFileReader::$section = null |
|
private |
TestFileReader::$sectionData = [] |
|
private |
TestFileReader::$sectionLineNum = [] |
|
private |
TestFileReader::$tests = [] |
|
private |
The documentation for this class was generated from the following file: