public function isAccepted(Test $test) { if (in_array($test->getName(), $this->blacklist, true)) { return false; } if ($this->whitelist && !in_array($test->getName(), $this->whitelist, true)) { return false; } return true; }