lithium\test\Unit::_result()

protected method

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

Source

	protected function _result($type, $info, array $options = []) {
		$info = (['result' => $type] + $info);
		$defaults = [];
		$options += $defaults;
		if ($this->_reporter) {
			$filtered = $this->_reporter->__invoke($info);
			$info = is_array($filtered) ? $filtered : $info;
		}
		$this->_results[] = $info;
	}