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()
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: