src/package/Data/Repositories/Support/Suites.php
protected function getAllFilesFromSuite($suite)
    {
        if (!file_exists($suite->testsFullPath)) {
            die('FATAL ERROR: directory not found: '.$suite->testsFullPath.'.');
        }

        $files = Finder::create()->files()->in($suite->testsFullPath);

        if ($suite->file_mask) {
            $files->name($suite->file_mask);
        }

        return iterator_to_array($files, false);
    }
protected function getAllFilesFromSuite($suite)
    {
        if (!file_exists($suite->testsFullPath)) {
            die('FATAL ERROR: directory not found: '.$suite->testsFullPath.'.');
        }

        $files = Finder::create()->files()->in($suite->testsFullPath);

        if ($suite->file_mask) {
            $files->name($suite->file_mask);
        }

        return iterator_to_array($files, false);
    }
protected function getAllFilesFromSuite ( $ suite ) { if ( ! file_exists ( $ suite -> testsFullPath ) ) { die ( 'FATAL ERROR: directory not found: ' . $ suite -> testsFullPath . '.' ) ; } $ files = Finder :: create ( ) -> files ( ) -> in ( $ suite -> testsFullPath ) ; if ( $ suite -> file_mask ) { $ files -> name ( $ suite -> file_mask ) ; } return iterator_to_array ( $ files , false ) ; }
Get all files from a suite.

@param $suite

@return array
Get all files from a suite .