Description
Reports test result messages.
Parameters
- string $type The type of result being reported. Can be `'pass'`, `'fail'`, `'skip'` or `'exception'`.
- array $info An array of information about the test result. At a minimum, this should contain a `'message'` key. Other possible keys are `'file'`, `'line'`, `'class'`, `'method'`, `'assertion'` and `'data'`.
- array $options Currently unimplemented.
Returns
void
protected function _result($type, $info, array $options = array()) {
$info = (array('result' => $type) + $info);
$defaults = array();
$options += $defaults;
if ($this->_reporter) {
$filtered = $this->_reporter->__invoke($info);
$info = is_array($filtered) ? $filtered : $info;
}
$this->_results[] = $info;
}