2, 'contestants' => $players, 'manual' => [ 'min_points' => $points ] ]; $doubleContestants = $params; $doubleContestants['contestants'] *= 2; $doubleContestantsResults = run($doubleContestants); $doubleContestantsResults['points'] = array_slice( $doubleContestantsResults['points'], 0, $players, TRUE); $doubleContestantsResults['sum'] = array_sum($doubleContestantsResults['points']) * 2; $stretchFunction = $params; $stretchFunction['manual']['points_cutoffs'] = [ [0.04, 0.9], [0.4, 0.2], [1.0, 0.0] ]; $stretchFunctionResults = run($stretchFunction); $this->assertEquals($stretchFunctionResults, $doubleContestantsResults); } public function dataGenerator() { for ($maxPoints = 10; $maxPoints <= 250; $maxPoints += 5) { for ($players = 10; $players < $maxPoints; $players += 1) { yield [$maxPoints, $players]; } } } } ?>