ensureSymlinkExists() публичный Метод

Create a symlink
public ensureSymlinkExists ( string $sourcePath, string $symlinkPath ) : boolean
$sourcePath string
$symlinkPath string
Результат boolean
 /**
  * @test
  */
 public function ensureSymlinkExistsWhenNotExists()
 {
     $filesystem = new SymlinkFilesystem();
     $this->assertTrue($filesystem->ensureSymlinkExists(sys_get_temp_dir(), $this->testDir . '/foo'));
     $this->assertFileExists($this->testDir . '/foo');
 }
 /**
  * @param PackageInterface $package
  */
 protected function createPackageVendorSymlink(PackageInterface $package)
 {
     if ($this->config->isSymlinkEnabled() && $this->filesystem->ensureSymlinkExists($this->getSymlinkSourcePath($package), $this->getPackageVendorSymlink($package))) {
         $this->io->write(array('  - Creating symlink for <info>' . $package->getPrettyName() . '</info> (<fg=yellow>' . $package->getPrettyVersion() . '</fg=yellow>)', ''));
     }
 }