lithium\test\Dispatcher::_report()

protected static method

Creates the test report class based on either the passed test case or the passed test group.

Parameters

  • string $group
  • array $options

    Options array passed from Dispatcher::run(). Should contain one of 'case' or 'group' keys.

Returns

object

Group object constructed with the test case or group passed in $options.

Source

	protected static function _report($group, $options) {
		$report = Libraries::locate('test', static::$_classes['report']);
		$class = static::_instance($report, compact('group') + $options);
		return $class;
	}