Skip to content

Commit

Permalink
On OS X, sys_get_tmp_dir() returns /var/private/..., which really is …
Browse files Browse the repository at this point in the history
…below /private/var.
  • Loading branch information
mpdude committed Mar 31, 2013
1 parent ea79360 commit 0ed8441
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class RealIteratorTestCase extends IteratorTestCase

public static function setUpBeforeClass()
{
self::$tmpDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'symfony2_finder';
self::$tmpDir = realpath(sys_get_temp_dir()) . DIRECTORY_SEPARATOR . 'symfony2_finder';

self::$files = array(
'.git/',
Expand Down Expand Up @@ -75,7 +75,7 @@ protected static function toAbsolute($files = null)
* Without the call to setUpBeforeClass() property can be null.
*/
if (!self::$tmpDir) {
self::$tmpDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'symfony2_finder';
self::$tmpDir = realpath(sys_get_temp_dir()) . DIRECTORY_SEPARATOR . 'symfony2_finder';
}

if (is_array($files)) {
Expand Down

0 comments on commit 0ed8441

Please sign in to comment.