Skip to content

Commit 173f23d

Browse files
committed
merged branch bdmu/ticket_5233 (PR #5234)
Commits ------- 47b8538 [Filesystem] missing realpath breaking FilesystemTest class on Windows (one line of code change) Discussion ---------- [Filesystem] missing readlink breaking FilesystemTest class on Windows Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: #5233 Todo: License of the code: MIT Documentation PR: fix for windows plateform $file == 'C:\Users\USERNA~1\...' before touch $file == 'C:\Users\Username\... after the touch and readlink so it can pass following assertEquals --------------------------------------------------------------------------- by bdmu at 2012-08-13T05:35:07Z Hello, Another solution may be (need to test it) to add $this->workspace = realpath($this->workspace); line 36, after the mkdir($this->workspace, 0777, true); in the setup method Regards, Christophe
2 parents ef29276 + 47b8538 commit 173f23d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Filesystem/Tests/FilesystemTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function setUp()
3333
$this->filesystem = new Filesystem();
3434
$this->workspace = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.time().rand(0, 1000);
3535
mkdir($this->workspace, 0777, true);
36+
$this->workspace = realpath($this->workspace);
3637
}
3738

3839
public function tearDown()

0 commit comments

Comments
 (0)