lithium\test\Unit::_result()
Reports test result messages.
Parameters
-
string
$typeThe type of result being reported. Can be
'pass','fail','skip'or'exception'. -
array
$infoAn 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
$optionsCurrently unimplemented.
Returns
voidSource
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;
}