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