public findSpecFilesIn ( string $path ) : SplFileInfo[] | ||
$path | string | |
리턴 | SplFileInfo[] |
/** * @param string $path * * @return PSR0Resource[] */ protected function findSpecResources($path) { if (!$this->filesystem->pathExists($path)) { return array(); } if ('.php' === substr($path, -4)) { return array($this->createResourceFromSpecFile(realpath($path))); } $resources = array(); foreach ($this->filesystem->findSpecFilesIn($path) as $file) { $resources[] = $this->createResourceFromSpecFile($file->getRealPath()); } return $resources; }