[BUGFIX] Tests: Namespaced usage of vfsStream 40/29440/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 13 Apr 2014 11:25:35 +0000 (13:25 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 13 Apr 2014 11:45:34 +0000 (13:45 +0200)
vfsStream was namespaced a while ago. While ext:phpunit still has
a Migration to map non namespaced classes to the namespaced ones,
they should not be used any longer.

Change-Id: I44dcda6707cf6410125f01552c995a27113b3cc2
Resolves: #57872
Related: #51436
Releases: 6.2
Reviewed-on: https://review.typo3.org/29440
Reviewed-by: Oliver Klee
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php

index c92ff30..82b2822 100644 (file)
@@ -25,6 +25,7 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility;
  ***************************************************************/
 
 use TYPO3\CMS\Core\Utility;
+use \org\bovigo\vfs\vfsStream;
 use \org\bovigo\vfs\vfsStreamDirectory;
 use \org\bovigo\vfs\vfsStreamWrapper;
 
@@ -3279,8 +3280,8 @@ class GeneralUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                        'test.css' => 'apples',
                        '.secret.txt' => 'sammon',
                );
-               \vfsStream::setup('test', NULL, $structure);
-               $vfsUrl = \vfsStream::url('test');
+               vfsStream::setup('test', NULL, $structure);
+               $vfsUrl = vfsStream::url('test');
 
                if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
                        // set random values for mtime