lib/Benchmark/Metadata/BenchmarkMetadata.php
public function filterSubjectGroups(array $groups)
    {
        foreach ($this->subjects as $subjectName => $subject) {
            if (0 === count(array_intersect($subject->getGroups(), $groups))) {
                unset($this->subjects[$subjectName]);
            }
        }
    }
public function filterSubjectGroups(array $groups)
    {
        foreach ($this->subjects as $subjectName => $subject) {
            if (0 === count(array_intersect($subject->getGroups(), $groups))) {
                unset($this->subjects[$subjectName]);
            }
        }
    }
public function filterSubjectGroups ( array $ groups ) { foreach ( $ this -> subjects as $ subjectName => $ subject ) { if ( 0 === count ( array_intersect ( $ subject -> getGroups ( ) , $ groups ) ) ) { unset ( $ this -> subjects [ $ subjectName ] ) ; } } }
Remove all the subjects which are not contained in the given list of groups.

@param string[] $groups
Remove all the subjects which are not contained in the given list of groups .