public function shouldInvoke($test_case_name, $method)
    {
        $numberOfReporters = count($this->reporters);
        for ($i = 0; $i < $numberOfReporters; $i++) {
            if (! $this->reporters[$i]->shouldInvoke($test_case_name, $method)) {
                return false;
            }
        }

        return true;
    }
public function shouldInvoke($test_case_name, $method)
    {
        $numberOfReporters = count($this->reporters);
        for ($i = 0; $i < $numberOfReporters; $i++) {
            if (! $this->reporters[$i]->shouldInvoke($test_case_name, $method)) {
                return false;
            }
        }

        return true;
    }
public function shouldInvoke ( $ test_case_name , $ method ) { $ numberOfReporters = count ( $ this -> reporters ) ; for ( $ i = 0 ; $ i < $ numberOfReporters ; $ i ++ ) { if ( ! $ this -> reporters [ $ i ] -> shouldInvoke ( $ test_case_name , $ method ) ) { return false ; } } return true ; }
The reporter has a veto on what should be run.
It requires all reporters to want to run the method.

@param string $test_case_name  name of test case.
@param string $method          Name of test method.
The reporter has a veto on what should be run . It requires all reporters to want to run the method .