protected function runTrials(Experiment $experiment)
    {
        $executions = [];

        foreach ($experiment->getTrials() as $name => $trial) {
            $executions[$name] = (new Machine(
                $trial->getCallback(),
                $experiment->getParams(),
                true,
                $trial->getContext()
            ))->execute();
        }

        return $executions;
    }
protected function runTrials(Experiment $experiment)
    {
        $executions = [];

        foreach ($experiment->getTrials() as $name => $trial) {
            $executions[$name] = (new Machine(
                $trial->getCallback(),
                $experiment->getParams(),
                true,
                $trial->getContext()
            ))->execute();
        }

        return $executions;
    }
protected function runTrials ( Experiment $ experiment ) { $ executions = [ ] ; foreach ( $ experiment -> getTrials ( ) as $ name => $ trial ) { $ executions [ $ name ] = ( new Machine ( $ trial -> getCallback ( ) , $ experiment -> getParams ( ) , true , $ trial -> getContext ( ) ) ) -> execute ( ) ; } return $ executions ; }
Run trial callbacks and record their execution state.

@param \Scientist\Experiment $experiment

@return \Scientist\Result[]
Run trial callbacks and record their execution state .