/** * Check if is a hook test * * @since 1.1.0 * * @param array $group Group config * * @return bool True if is valid group of the destination subtype */ public static function is_hook(array $group) { if ('hook' == \ingot\testing\utility\group::sub_type($group)) { return true; } }
/** * Based on group type, should unique sessions or total sessions be used for calculating averages * * @access protected * * @since 1.1.0 * * @param array $group Group config array * * @return bool */ protected function use_unique($group) { if ('price' == \ingot\testing\utility\group::type($group) || 'destination' == \ingot\testing\utility\group::sub_type($group)) { return true; } return false; }