private $sectionLineNum = [];
private $lineNum = 0;
private $runDisabled;
- private $runParsoid;
private $regex;
private $articles = [];
$options = $options + [
'runDisabled' => false,
- 'runParsoid' => false,
'regex' => '//',
];
$this->runDisabled = $options['runDisabled'];
- $this->runParsoid = $options['runParsoid'];
$this->regex = $options['regex'];
}
}
}
- if ( preg_match( '/\\bparsoid\\b/i', $data['options'] ) && $nonTidySection === 'html'
- && !$this->runParsoid
- ) {
- // A test which normally runs on Parsoid but can optionally be run with MW
- return;
- }
-
if ( !preg_match( $this->regex, $data['test'] ) ) {
// Filtered test
return;
}
private function execute() {
- while ( false !== ( $line = fgets( $this->fh ) ) ) {
+ while ( ( $line = fgets( $this->fh ) ) !== false ) {
$this->lineNum++;
$matches = [];