8000 merged branch webfactory/fix-finder-test-osx (PR #7536) · symfony/symfony@b70bb44 · GitHub
[go: up one dir, main page]

Skip to content

Commit b70bb44

Browse files
committed
merged branch webfactory/fix-finder-test-osx (PR #7536)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #7536). Discussion ---------- Fix Finder tests on OS X ... where sys_get_temp_dir() does not return a realpath(). Commits ------- 0ed8441 On OS X, sys_get_tmp_dir() returns /var/private/..., which really is below /private/var.
2 parents 92501eb + 43a818e commit b70bb44

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