Filesystem::getFiles PHP Method

getFiles() public static method

public static getFiles ( $path )
    public static function getFiles($path)
    {
        $path = self::path($path);
        return array_slice(scandir($path), 2);
    }

Usage Example

 public function testIfRetrievingTheFilesWorks()
 {
     $config = \Mockery::mock('eXistenZNL\\PermCheck\\Config\\Config');
     $filesystem = new Filesystem($config, dirname(__FILE__));
     $files = array(__FILE__);
     $result = array();
     foreach ($filesystem->getFiles() as $file) {
         $result[] = $file->getPathname();
     }
     $this->assertEquals($files, $result);
 }
All Usage Examples Of Filesystem::getFiles