8000 On OS X, sys_get_tmp_dir() returns /var/private/..., which really is … · symfony/symfony@0ed8441 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ed8441

Browse files
committed
On OS X, sys_get_tmp_dir() returns /var/private/..., which really is below /private/var.
1 parent ea79360 commit 0ed8441

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Finder/Tests/Iterator/RealIteratorTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ abstract class RealIteratorTestCase extends IteratorTestCase
1919

2020
public static function setUpBeforeClass()
2121
{
22-
self::$tmpDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'symfony2_finder';
22+
self::$tmpDir = realpath(sys_get_temp_dir()) . DIRECTORY_SEPARATOR . 'symfony2_finder';
2323

2424
self::$files = array(
2525
'.git/',
@@ -75,7 +75,7 @@ protected static function toAbsolute($files = null)
7575
* Without the call to setUpBeforeClass() property can be null.
7676
*/
7777
if (!self::$tmpDir) {
78-
self::$tmpDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'symfony2_finder';
78+
self::$tmpDir = realpath(sys_get_temp_dir()) . DIRECTORY_SEPARATOR . 'symfony2_finder';
7979
}
8080

8181
if (is_array($files)) {

0 commit comments

Comments
 (0)
0