src/PHPCoverFish/Base/BaseScanner.php
public function scanFilesInPath($sourcePath)
    {
        $filePattern = $this->filePattern;
        if (strpos($sourcePath, str_replace('*', null, $filePattern))) {
            $filePattern = $this->coverFishHelper->getFileNameFromPath($sourcePath);
        }

        $facade = new FinderFacade(
            array($sourcePath),
            $this->filePatternExclude,
            array($filePattern)
        );

        return $this->removeExcludedPath($facade->findFiles(), $this->testExcludePath);
    }
public function scanFilesInPath($sourcePath)
    {
        $filePattern = $this->filePattern;
        if (strpos($sourcePath, str_replace('*', null, $filePattern))) {
            $filePattern = $this->coverFishHelper->getFileNameFromPath($sourcePath);
        }

        $facade = new FinderFacade(
            array($sourcePath),
            $this->filePatternExclude,
            array($filePattern)
        );

        return $this->removeExcludedPath($facade->findFiles(), $this->testExcludePath);
    }
public function scanFilesInPath ( $ sourcePath ) { $ filePattern = $ this -> filePattern ; if ( strpos ( $ sourcePath , str_replace ( '*' , null , $ filePattern ) ) ) { $ filePattern = $ this -> coverFishHelper -> getFileNameFromPath ( $ sourcePath ) ; } $ facade = new FinderFacade ( array ( $ sourcePath ) , $ this -> filePatternExclude , array ( $ filePattern ) ) ; return $ this -> removeExcludedPath ( $ facade -> findFiles ( ) , $ this -> testExcludePath ) ; }
scan all files by given path recursively, if one php file will be provided within given path,
this file will be returned in finder format

@param string $sourcePath

@return array
scan all files by given path recursively if one php file will be provided within given path this file will be returned in finder format