lib/Benchmark/Metadata/BenchmarkMetadata.php
public function filterSubjectNames(array $filters)
    {
        foreach (array_keys($this->subjects) as $subjectName) {
            $unset = true;

            foreach ($filters as $filter) {
                if (preg_match(
                    sprintf('{^.*?%s.*?$}', $filter),
                    sprintf('%s::%s', $this->getClass(), $subjectName)
                )) {
                    $unset = false;

                    break;
                }
            }

            if (true === $unset) {
                unset($this->subjects[$subjectName]);
            }
        }
    }
public function filterSubjectNames(array $filters)
    {
        foreach (array_keys($this->subjects) as $subjectName) {
            $unset = true;

            foreach ($filters as $filter) {
                if (preg_match(
                    sprintf('{^.*?%s.*?$}', $filter),
                    sprintf('%s::%s', $this->getClass(), $subjectName)
                )) {
                    $unset = false;

                    break;
                }
            }

            if (true === $unset) {
                unset($this->subjects[$subjectName]);
            }
        }
    }
public function filterSubjectNames ( array $ filters ) { foreach ( array_keys ( $ this -> subjects ) as $ subjectName ) { $ unset = true ; foreach ( $ filters as $ filter ) { if ( preg_match ( sprintf ( '{^.*?%s.*?$}' , $ filter ) , sprintf ( '%s::%s' , $ this -> getClass ( ) , $ subjectName ) ) ) { $ unset = false ; break ; } } if ( true === $ unset ) { unset ( $ this -> subjects [ $ subjectName ] ) ; } } }
Remove all subjects whose name is not in the given list.

@param string[] $filters
Remove all subjects whose name is not in the given list .