From 4347f9f5631db1d2f79f22b1a692df746f2e37de Mon Sep 17 00:00:00 2001 From: "Johannes M. Schmitt" Date: Wed, 15 Sep 2010 13:10:39 +0200 Subject: [PATCH] fixes a 'permission denied' bug on Windows --- .../Component/Finder/Iterator/RealIteratorTestCase.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/Symfony/Tests/Component/Finder/Iterator/RealIteratorTestCase.php b/tests/Symfony/Tests/Component/Finder/Iterator/RealIteratorTestCase.php index 7efe99fd8d62a..3117fc2a98474 100644 --- a/tests/Symfony/Tests/Component/Finder/Iterator/RealIteratorTestCase.php +++ b/tests/Symfony/Tests/Component/Finder/Iterator/RealIteratorTestCase.php @@ -16,10 +16,11 @@ class RealIteratorTestCase extends IteratorTestCase { static protected $files; - + static protected $callCount = 0; + static public function setUpBeforeClass() { - $tmpDir = sys_get_temp_dir().'/symfony2_finder'; + $tmpDir = sys_get_temp_dir().'/symfony2_finder'.(self::$callCount++); self::$files = array( $tmpDir.'/.git/', $tmpDir.'/test.py', @@ -46,8 +47,8 @@ static public function setUpBeforeClass() file_put_contents($tmpDir.'/test.php', str_repeat(' ', 800)); file_put_contents($tmpDir.'/test.py', str_repeat(' ', 2000)); - touch(sys_get_temp_dir().'/symfony2_finder/foo/bar.tmp', strtotime('2005-10-15')); - touch(sys_get_temp_dir().'/symfony2_finder/test.php', strtotime('2005-10-15')); + touch($tmpDir.'/foo/bar.tmp', strtotime('2005-10-15')); + touch($tmpDir.'/test.php', strtotime('2005-10-15')); } static public function tearDownAfterClass() pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy