Fix: Resolve tempdir symlink, not working on OSX
This commit is contained in:
parent
551d164b4f
commit
3aee6b93e2
@ -1042,8 +1042,8 @@ class FilesystemTest extends FilesystemTestCase
|
|||||||
$dirname = $scheme.$this->workspace.DIRECTORY_SEPARATOR.'does_not_exist';
|
$dirname = $scheme.$this->workspace.DIRECTORY_SEPARATOR.'does_not_exist';
|
||||||
|
|
||||||
$filename = $this->filesystem->tempnam($dirname, 'bar');
|
$filename = $this->filesystem->tempnam($dirname, 'bar');
|
||||||
|
$realTempDir = realpath(sys_get_temp_dir());
|
||||||
$this->assertStringStartsWith(rtrim($scheme.sys_get_temp_dir(), DIRECTORY_SEPARATOR), $filename);
|
$this->assertStringStartsWith(rtrim($scheme.$realTempDir, DIRECTORY_SEPARATOR), $filename);
|
||||||
$this->assertFileExists($filename);
|
$this->assertFileExists($filename);
|
||||||
|
|
||||||
// Tear down
|
// Tear down
|
||||||
|
Reference in New Issue
Block a user