'input' => $data[$input],
'options' => $data['options'],
'config' => $data['config'],
+ 'line' => $this->sectionLineNum['test'],
+ 'file' => $this->file
];
if ( $nonTidySection !== false ) {
// Add non-tidy test
$this->tests[] = [
'result' => $data[$nonTidySection],
+ 'resultSection' => $nonTidySection
] + $commonInfo;
if ( $tidySection !== false ) {
$this->tests[] = [
'desc' => $data['test'] . ' (with tidy)',
'result' => $data[$tidySection],
+ 'resultSection' => $tidySection,
'options' => $data['options'] . ' tidy',
+ 'isSubtest' => true,
] + $commonInfo;
}
} elseif ( $tidySection !== false ) {
// No need to override desc when there is no subtest
$this->tests[] = [
'result' => $data[$tidySection],
+ 'resultSection' => $tidySection,
'options' => $data['options'] . ' tidy'
] + $commonInfo;
} else {
$this->sectionLineNum = [];
$this->sectionData = [];
$this->section = null;
-
}
/**
$this->requirements[$type][$name] = true;
}
}
-