Beispiel #1
0
 /**
  * Test find common root with ints
  *
  * @return void
  */
 public function testFindCommonRootWithInts()
 {
     $list = array(1113, 1112);
     $expected = '111';
     $result = Utils::findCommonRoot($list);
     $this->assertEquals($expected, $result);
 }
 /**
  * Write to filelist for globbed path
  *
  * @param string $path Path to start globbing
  * @return void
  */
 protected function _createFileList($path)
 {
     // Ensure path ends in single slash
     $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
     $this->_qis->log("Creating file list for path `{$path}'");
     $files = Utils::rglob('*.php', 0, $path);
     $files = $this->_filterIgnoredFiles($files);
     $filelist = implode("\n", $files);
     $filelistPath = $this->_outputPath . 'filelist';
     file_put_contents($filelistPath, $filelist . "\n", FILE_APPEND);
     $this->files = array_merge($this->files, $files);
     return $this->files;
 }