Esempio n. 1
0
 /** @test */
 public function shouldScanOnlyDirsFromADirRecursively()
 {
     $expected = ['AnotherDir' . DIRECTORY_SEPARATOR . 'AnotherDirIntoDir', 'AnotherDir'];
     $scanned = $this->utils->scanDir($this->testableDir, FileUtils::DIRS, true);
     $this->assertSame($expected, $scanned);
 }
Esempio n. 2
0
 /**
  * @param $srcFile
  * @param SuiteConfig $config
  *
  * @return bool
  */
 private function isPhpClassFile($srcFile, $config)
 {
     return FileUtils::instance()->extensionIs($srcFile, 'php') && $this->fileHasClass(FileUtils::instance()->makePath($config->getSrcBasePath(), $srcFile));
 }
 /**
  * @param $path
  *
  * @return string
  */
 private function getBasePath($path)
 {
     return FileUtils::instance()->makePath($this->basePath, $path);
 }