protected function reportQuail_api::get_test_results_array in Quail API 8
Same name and namespace in other branches
- 7 includes/quail_api_reporters.inc \reportQuail_api::get_test_results_array()
Processes the results of a single test problem.
Parameters
$quail_test_name: The severity of the test whose results are to be processed.
$test: An array containing the unprocessed test results associated with the given $quail_test_name.
$problem_id: The id/name of a given problem as returned by Quail.
$problem: An object containing the problem as returned by Quail.
1 call to reportQuail_api::get_test_results_array()
- reportQuail_api::get_test_results in includes/
quail_api_reporters.inc - Processes the results of a given test.
File
- includes/
quail_api_reporters.inc, line 111 - Contains quail reporter class objects for the quail api.
Class
- reportQuail_api
- An array reporter that generates a nested array of tests and report objects.
Code
protected function get_test_results_array($severity, $quail_test_name, $problem_id, $problem) {
$this->quail_api_report['report'][$severity][$quail_test_name]['problems'][$problem_id]['element'] = htmlentities($problem
->getHtml());
$this->quail_api_report['report'][$severity][$quail_test_name]['problems'][$problem_id]['line'] = $problem
->getLine();
if ($problem->message) {
$this->quail_api_report['report'][$severity][$quail_test_name]['problems']['message'] = $problem->message;
}
}