[TASK] getFilesInDirCanOrderByMtime-test should use vfs 19/27719/3
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 19 Feb 2014 12:33:05 +0000 (13:33 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Wed, 19 Feb 2014 13:16:58 +0000 (14:16 +0100)
Follow-up for PHP 5.3 compatiblity.

Resolves: #56121
Releases: 6.2
Change-Id: I948eb3063c2e6b014b8d69c2011789c7dbe58748
Reviewed-on: https://review.typo3.org/27719
Reviewed-by: Michiel Roos
Tested-by: Michiel Roos
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php

index f42d71e..c5b8981 100644 (file)
@@ -3352,7 +3352,7 @@ class GeneralUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                \vfsStream::setup('test', NULL, $structure);
                $vfsUrl = \vfsStream::url('test');
 
-               if (version_compare(PHP_VERSION, '5.3.0', '>')) {
+               if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
                        // set random values for mtime
                        foreach ($structure as $structureLevel1Key => $structureLevel1Content) {
                                $newMtime = rand();