[FOLLOWUP][TASK] Clean up unit tests on Windows 36/47536/2
authorSusanne Moog <typo3@susannemoog.de>
Thu, 7 Apr 2016 16:21:34 +0000 (18:21 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 7 Apr 2016 17:06:02 +0000 (19:06 +0200)
Use OS independent temp directory.

Change-Id: Idb6f0a0d9f5666ca84ec10d9a342bf29c0571068
Resolves: #75388
Releases: master
Reviewed-on: https://review.typo3.org/47536
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Tests/Unit/Locking/SimpleLockStrategyTest.php

index e64b569..4e68733 100644 (file)
@@ -88,7 +88,7 @@ class SimpleLockStrategyTest extends UnitTestCase
     public function invalidFileReferences()
     {
         return array(
-            'not withing PATH_site' => array('/tmp/TYPO3-Lock-Test'),
+            'not within PATH_site' => array(tempnam(sys_get_temp_dir(), 'foo')),
             'directory traversal' => array(PATH_site . 'typo3temp/../typo3temp/var/locks/foo'),
             'directory traversal 2' => array(PATH_site . 'typo3temp/var/locks/../../var/locks/foo'),
             'within uploads' => array(PATH_site . 'uploads/TYPO3-Lock-Test')