Exemple #1
0
 /**
  * Set up fixture test folders and files
  *
  * @throws \Exception
  * @return void
  */
 public static function setUpBeforeClass()
 {
     static::$fileSystem = FileSystem::factory('vfs://');
     static::$fileSystem->mount();
     $testPaths = ['/base/sub/test', '/base/sub/sub/test'];
     // Setup some files we test against
     foreach ($testPaths as $path) {
         mkdir('vfs://' . $path, 0777, true);
         touch('vfs://' . $path . DIRECTORY_SEPARATOR . 'TestClass.php');
     }
 }
 /**
  * @BeforeScenario
  *
  * @param BeforeScenarioScope $scope
  */
 public function beforeScenario(BeforeScenarioScope $scope)
 {
     $this->fileSystem->mount();
 }