protected function determineMatches(Matcher $matcher, Result $control, array $trials = [])
    {
        foreach ($trials as $trial) {
            if ($matcher->match($control->getValue(), $trial->getValue())) {
                $trial->setMatch(true);
            }
        }
    }
protected function determineMatches(Matcher $matcher, Result $control, array $trials = [])
    {
        foreach ($trials as $trial) {
            if ($matcher->match($control->getValue(), $trial->getValue())) {
                $trial->setMatch(true);
            }
        }
    }
protected function determineMatches ( Matcher $ matcher , Result $ control , array $ trials = [ ] ) { foreach ( $ trials as $ trial ) { if ( $ matcher -> match ( $ control -> getValue ( ) , $ trial -> getValue ( ) ) ) { $ trial -> setMatch ( true ) ; } } }
Determine whether trial results match the control.

@param \Scientist\Matchers\Matcher $matcher
@param \Scientist\Result           $control
@param \Scientist\Result[]         $trials
Determine whether trial results match the control .