function accept() { $name = pathinfo($this->getFileName())['filename']; return !$this->isFile() || isValidTestName($name) && preg_match($this->regex, $this->getFilename()); }
private function isValidTestFile(\Reflector $reflector, array $testFiles) { return in_array($reflector->getFileName(), $testFiles) && isValidTestName($reflector->getShortName()); }
private function isTestMethod(\ReflectionMethod $method) { $name = strtolower($method->getName()); return !$method->isStatic() && isValidTestName($name); }