[Filesystem] Fixed 2 tests throwing error on windows
This commit is contained in:
parent
3689bb8b9d
commit
03c3712fb3
@ -319,7 +319,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
|
||||
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 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
|
||||
$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);
|
||||
|
||||
|
Reference in New Issue
Block a user