Permalink
Browse files

[Filesystem] Fixed 2 tests throwing error on windows

  • Loading branch information...
1 parent 1455fd4 commit e0ea9317ef869d824cbc4b6ba486daaf5a594b44 @pborreli pborreli committed Jul 28, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Tests/FilesystemTest.php
@@ -319,7 +319,7 @@ public function testRemoveCleansInvalidLinks()
mkdir($basePath);
mkdir($basePath.'dir');
// create symlink to unexisting file
- symlink($basePath.'file', $basePath.'link');
+ @symlink($basePath.'file', $basePath.'link');
$this->filesystem->remove($basePath);
@@ -701,6 +701,8 @@ public function testSymlinkCreatesTargetDirectoryIfItDoesNotExist()
$link1 = $this->workspace.DIRECTORY_SEPARATOR.'dir'.DIRECTORY_SEPARATOR.'link';
$link2 = $this->workspace.DIRECTORY_SEPARATOR.'dir'.DIRECTORY_SEPARATOR.'subdir'.DIRECTORY_SEPARATOR.'link';
+ touch($file);
+
$this->filesystem->symlink($file, $link1);
$this->filesystem->symlink($file, $link2);

0 comments on commit e0ea931

Please sign in to comment.