You are here

function RegistryParseFilesTestCase::getFiles in SimpleTest 7

getFiles

1 call to RegistryParseFilesTestCase::getFiles()
RegistryParseFilesTestCase::testRegistryParseFiles in tests/registry.test
testRegistryParseFiles

File

tests/registry.test, line 114

Class

RegistryParseFilesTestCase

Code

function getFiles() {
  $files = array();
  foreach ($this->fileTypes as $fileType) {
    $files[$this->{$fileType}->fileName] = array(
      'module' => '',
      'weight' => 0,
    );
    if ($fileType == 'existing_changed') {
      $files[$this->{$fileType}->fileName]['filectime'] = rand(1, 1000000);
      $files[$this->{$fileType}->fileName]['filemtime'] = rand(1, 1000000);
    }
  }
  return $files;
}