/** * Track winning tests * * @since 0.0.9 * * @access protected * * @param array $winners */ protected static function record_victories($winners) { if (!empty($winners)) { foreach ($winners as $winner) { flow::increase_victory($winner['test_ID'], $winner['sequence_ID']); } } }
/** * Track that test ran * * @since 0.0.9 * * @access protected * * @param array $data */ protected function increase_total($data) { flow::increase_total(helpers::v('test_ID', $data, 0), helpers::v('sequence_ID', $data, 0)); }
/** * Determine a or b * * @since 0.0.9 * * @access protected * * @param array $sequence * * @return bool|string */ protected function a_or_b($sequence) { $chance = new chance($sequence); $a_or_b = flow::choose_a($chance->get_chance(), false); return $a_or_b; }