[TASK] Use __DIR__ instead of dirname(__FILE__)
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 14 Apr 2013 00:42:25 +0000 (02:42 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 14 Apr 2013 09:12:54 +0000 (11:12 +0200)
Supported since PHP 5.3.0.
Fluid from Flow uses __DIR__ and the backporter
used a replacement to transform it to
dirname(__FILE__).

See also patch for backporter:
https://review.typo3.org/19955

Resolves: #47206
Releases: 6.0, 6.1
Change-Id: If32852e74625990b6323848074fe54fc5e1fb554
Reviewed-on: https://review.typo3.org/19956
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
41 files changed:
typo3/sysext/fluid/Tests/Unit/Core/Parser/SyntaxTree/ViewHelperNodeTest.php
typo3/sysext/fluid/Tests/Unit/Core/Parser/TemplateParserTest.php
typo3/sysext/fluid/Tests/Unit/Core/ViewHelper/AbstractConditionViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/Core/ViewHelper/AbstractViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/Core/ViewHelper/ViewHelperVariableContainerTest.php
typo3/sysext/fluid/Tests/Unit/View/StandaloneViewTest.php
typo3/sysext/fluid/Tests/Unit/View/TemplateViewTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/AliasViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/BaseViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Be/IfAuthenticatedViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Be/IfHasRoleViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/CountViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/CycleViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/ElseViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/ForViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/AbstractFormFieldViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/AbstractFormViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/ButtonViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/CheckboxViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/FormFieldViewHelperBaseTestcase.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/HiddenViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/PasswordViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/RadioViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/SelectViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/SubmitViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextareaViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextfieldViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/UploadViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/GroupedForViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/IfViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/EmailViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/ExternalViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/RenderChildrenViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/RenderViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Security/IfAuthenticatedViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Security/IfHasRoleViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/ThenViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Uri/EmailViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Uri/ExternalViewHelperTest.php

index ed9f26b..19c23e3 100644 (file)
@@ -11,8 +11,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\Core\Parser\SyntaxTree;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once dirname(__FILE__) . '/../Fixtures/ChildNodeAccessFacetViewHelper.php';
-require_once dirname(__FILE__) . '/../../Fixtures/TestViewHelper.php';
+require_once __DIR__ . '/../Fixtures/ChildNodeAccessFacetViewHelper.php';
+require_once __DIR__ . '/../../Fixtures/TestViewHelper.php';
 
 /**
  * Testcase for \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode
index a693e86..fa2fb7a 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\Core\Parser;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/Fixtures/PostParseFacetViewHelper.php');
+require_once(__DIR__ . '/Fixtures/PostParseFacetViewHelper.php');
 
 /**
  * Testcase for TemplateParser.
@@ -206,8 +206,8 @@ class TemplateParserTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @test
         */
        public function splitTemplateAtDynamicTagsReturnsCorrectlySplitTemplate($templateName) {
-               $template = file_get_contents(dirname(__FILE__) . '/Fixtures/' . $templateName . '.html', FILE_TEXT);
-               $expectedResult = require(dirname(__FILE__) . '/Fixtures/' . $templateName . '-split.php');
+               $template = file_get_contents(__DIR__ . '/Fixtures/' . $templateName . '.html', FILE_TEXT);
+               $expectedResult = require(__DIR__ . '/Fixtures/' . $templateName . '-split.php');
                $templateParser = $this->getAccessibleMock('TYPO3\\CMS\\Fluid\\Core\\Parser\\TemplateParser', array('dummy'));
                $this->assertSame($expectedResult, $templateParser->_call('splitTemplateAtDynamicTags', $template), 'Filed for ' . $templateName);
        }
index 0be1756..d8c084e 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\Core\ViewHelper;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/../../ViewHelpers/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/../../ViewHelpers/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for Condition ViewHelper
index 1b0a26e..994265a 100644 (file)
@@ -11,8 +11,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\Core\ViewHelper;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/../Fixtures/TestViewHelper.php');
-require_once(dirname(__FILE__) . '/../Fixtures/TestViewHelper2.php');
+require_once(__DIR__ . '/../Fixtures/TestViewHelper.php');
+require_once(__DIR__ . '/../Fixtures/TestViewHelper2.php');
 
 /**
  * Testcase for AbstractViewHelper
index ab627d4..51edb85 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\Core\ViewHelper;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/../Fixtures/TestViewHelper.php');
+require_once(__DIR__ . '/../Fixtures/TestViewHelper.php');
 
 /**
  * Testcase for AbstractViewHelper
index 172ac07..159ab2c 100644 (file)
@@ -251,7 +251,7 @@ class StandaloneViewTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @test
         */
        public function renderLoadsSpecifiedTemplateFileAndPassesSourceToTemplateParser() {
-               $templatePathAndFilename = dirname(__FILE__) . '/Fixtures/StandaloneViewFixture.html';
+               $templatePathAndFilename = __DIR__ . '/Fixtures/StandaloneViewFixture.html';
                $expectedResult = file_get_contents($templatePathAndFilename);
                $this->view->setTemplatePathAndFilename($templatePathAndFilename);
                $this->mockTemplateParser->expects($this->once())->method('parse')->with($expectedResult);
@@ -320,7 +320,7 @@ class StandaloneViewTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @expectedException \TYPO3\CMS\Fluid\View\Exception\InvalidTemplateResourceException
         */
        public function getLayoutSourceThrowsExceptionIfLayoutFileDoesNotExist() {
-               $layoutRootPath = dirname(__FILE__) . '/Fixtures';
+               $layoutRootPath = __DIR__ . '/Fixtures';
                $this->view->setLayoutRootPath($layoutRootPath);
                $this->view->_call('getLayoutSource', 'NonExistingLayout');
        }
@@ -329,7 +329,7 @@ class StandaloneViewTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @test
         */
        public function getLayoutSourceReturnsContentOfLayoutFileForTheDefaultFormat() {
-               $layoutRootPath = dirname(__FILE__) . '/Fixtures';
+               $layoutRootPath = __DIR__ . '/Fixtures';
                $this->view->setLayoutRootPath($layoutRootPath);
                $this->mockRequest->expects($this->once())->method('getFormat')->will($this->returnValue('html'));
                $expectedResult = file_get_contents($layoutRootPath . '/LayoutFixture.html');
@@ -341,7 +341,7 @@ class StandaloneViewTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @test
         */
        public function getLayoutSourceReturnsContentOfLayoutFileForTheSpecifiedFormat() {
-               $layoutRootPath = dirname(__FILE__) . '/Fixtures';
+               $layoutRootPath = __DIR__ . '/Fixtures';
                $this->view->setLayoutRootPath($layoutRootPath);
                $this->mockRequest->expects($this->once())->method('getFormat')->will($this->returnValue('xml'));
                $expectedResult = file_get_contents($layoutRootPath . '/LayoutFixture.xml');
@@ -353,7 +353,7 @@ class StandaloneViewTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @test
         */
        public function getLayoutSourceReturnsContentOfDefaultLayoutFileIfNoLayoutExistsForTheSpecifiedFormat() {
-               $layoutRootPath = dirname(__FILE__) . '/Fixtures';
+               $layoutRootPath = __DIR__ . '/Fixtures';
                $this->view->setLayoutRootPath($layoutRootPath);
                $this->mockRequest->expects($this->once())->method('getFormat')->will($this->returnValue('foo'));
                $expectedResult = file_get_contents($layoutRootPath . '/LayoutFixture');
@@ -406,7 +406,7 @@ class StandaloneViewTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @expectedException \TYPO3\CMS\Fluid\View\Exception\InvalidTemplateResourceException
         */
        public function getPartialSourceThrowsExceptionIfPartialFileDoesNotExist() {
-               $partialRootPath = dirname(__FILE__) . '/Fixtures';
+               $partialRootPath = __DIR__ . '/Fixtures';
                $this->view->setPartialRootPath($partialRootPath);
                $this->view->_call('getPartialSource', 'NonExistingPartial');
        }
@@ -415,7 +415,7 @@ class StandaloneViewTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @test
         */
        public function getPartialSourceReturnsContentOfPartialFileForTheDefaultFormat() {
-               $partialRootPath = dirname(__FILE__) . '/Fixtures';
+               $partialRootPath = __DIR__ . '/Fixtures';
                $this->view->setPartialRootPath($partialRootPath);
                $this->mockRequest->expects($this->once())->method('getFormat')->will($this->returnValue('html'));
                $expectedResult = file_get_contents($partialRootPath . '/LayoutFixture.html');
@@ -427,7 +427,7 @@ class StandaloneViewTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @test
         */
        public function getPartialSourceReturnsContentOfPartialFileForTheSpecifiedFormat() {
-               $partialRootPath = dirname(__FILE__) . '/Fixtures';
+               $partialRootPath = __DIR__ . '/Fixtures';
                $this->view->setPartialRootPath($partialRootPath);
                $this->mockRequest->expects($this->once())->method('getFormat')->will($this->returnValue('xml'));
                $expectedResult = file_get_contents($partialRootPath . '/LayoutFixture.xml');
@@ -439,7 +439,7 @@ class StandaloneViewTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
         * @test
         */
        public function getPartialSourceReturnsContentOfDefaultPartialFileIfNoPartialExistsForTheSpecifiedFormat() {
-               $partialRootPath = dirname(__FILE__) . '/Fixtures';
+               $partialRootPath = __DIR__ . '/Fixtures';
                $this->view->setPartialRootPath($partialRootPath);
                $this->mockRequest->expects($this->once())->method('getFormat')->will($this->returnValue('foo'));
                $expectedResult = file_get_contents($partialRootPath . '/LayoutFixture');
index dd21687..55c8ece 100644 (file)
@@ -11,8 +11,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\View;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-include_once(dirname(__FILE__) . '/Fixtures/TransparentSyntaxTreeNode.php');
-include_once(dirname(__FILE__) . '/Fixtures/TemplateViewFixture.php');
+include_once(__DIR__ . '/Fixtures/TransparentSyntaxTreeNode.php');
+include_once(__DIR__ . '/Fixtures/TemplateViewFixture.php');
 
 /**
  * Testcase for the TemplateView
index 2508485..5f524c0 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for AliasViewHelper
index cbb59dc..d8b0713 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 /**
  */
 class BaseViewHelperTest extends \TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase {
index 796540c..8731a95 100644 (file)
@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Be;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
-require_once dirname(__FILE__) . '/../ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/../ViewHelperBaseTestcase.php';
 
 /**
  * Testcase for be.security.ifAuthenticated view helper
index f9c7c71..fab73bc 100644 (file)
@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Be;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
-require_once dirname(__FILE__) . '/../ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/../ViewHelperBaseTestcase.php';
 
 /**
  * Testcase for be.security.ifHasRole view helper
index 765e920..80f08ff 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for CountViewHelper
index d526dc4..639a5b2 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for CycleViewHelper
index cfb1d41..dd35b5b 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for ElseViewHelper
index 980876b..4992df6 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for FlashMessagesViewHelper
index ff3ee4f..65d45fe 100644 (file)
@@ -11,8 +11,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-include_once(dirname(__FILE__) . '/Fixtures/ConstraintSyntaxTreeNode.php');
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+include_once(__DIR__ . '/Fixtures/ConstraintSyntaxTreeNode.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for ForViewHelper
index 87f5d50..2b1e20d 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the Abstract Form view helper
index 6d952e6..0ccba52 100644 (file)
@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
-require_once dirname(__FILE__) . '/../ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/../ViewHelperBaseTestcase.php';
 
 /**
  * Test for the Abstract Form view helper
index 428ba5b..a2fa78f 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Button" Form view helper
index 3f392e0..d23931e 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Checkbox" Form view helper
index c5f7080..8c418b7 100644 (file)
@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
-require_once dirname(__FILE__) . '/../ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/../ViewHelperBaseTestcase.php';
 
 /**
  * Test for the Abstract Form view helper
index 7e6037a..6ab1569 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Hidden" Form view helper
index febe474..c4bacc2 100644 (file)
@@ -11,9 +11,9 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/Fixtures/EmptySyntaxTreeNode.php');
-require_once(dirname(__FILE__) . '/Fixtures/Fixture_UserDomainClass.php');
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/Fixtures/EmptySyntaxTreeNode.php');
+require_once(__DIR__ . '/Fixtures/Fixture_UserDomainClass.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Password" Form view helper
index 0261009..ae4d111 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Radio" Form view helper
index 3022be4..f55d987 100644 (file)
@@ -11,9 +11,9 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/Fixtures/EmptySyntaxTreeNode.php');
-require_once(dirname(__FILE__) . '/Fixtures/Fixture_UserDomainClass.php');
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/Fixtures/EmptySyntaxTreeNode.php');
+require_once(__DIR__ . '/Fixtures/Fixture_UserDomainClass.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Select" Form view helper
index e0c4473..2ed383d 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Submit" Form view helper
index c658dfc..778bb0d 100644 (file)
@@ -11,9 +11,9 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/Fixtures/EmptySyntaxTreeNode.php');
-require_once(dirname(__FILE__) . '/Fixtures/Fixture_UserDomainClass.php');
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/Fixtures/EmptySyntaxTreeNode.php');
+require_once(__DIR__ . '/Fixtures/Fixture_UserDomainClass.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Textarea" Form view helper
index cd74c5e..dd0fa5d 100644 (file)
@@ -11,9 +11,9 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/Fixtures/EmptySyntaxTreeNode.php');
-require_once(dirname(__FILE__) . '/Fixtures/Fixture_UserDomainClass.php');
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/Fixtures/EmptySyntaxTreeNode.php');
+require_once(__DIR__ . '/Fixtures/Fixture_UserDomainClass.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Textfield" Form view helper
index 3d496bb..3a722ee 100644 (file)
@@ -11,9 +11,9 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/Fixtures/EmptySyntaxTreeNode.php');
-require_once(dirname(__FILE__) . '/Fixtures/Fixture_UserDomainClass.php');
-require_once(dirname(__FILE__) . '/FormFieldViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/Fixtures/EmptySyntaxTreeNode.php');
+require_once(__DIR__ . '/Fixtures/Fixture_UserDomainClass.php');
+require_once(__DIR__ . '/FormFieldViewHelperBaseTestcase.php');
 
 /**
  * Test for the "Upload" Form view helper
index bba1ca9..f66eace 100644 (file)
@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
-require_once dirname(__FILE__) . '/ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/ViewHelperBaseTestcase.php';
 
 /**
  * Test for the Form view helper
index a200485..ac7019f 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for GroupedForViewHelper.
index 970b957..f815fcd 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for IfViewHelper
index b491216..e7d902b 100644 (file)
@@ -13,7 +13,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Link;
  * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General      *
  * Public License for more details.                                       *
  *                                                                        */
-require_once dirname(__FILE__) . '/../ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/../ViewHelperBaseTestcase.php';
 
 /**
 
index db4204a..72ebde8 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Link;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/../ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/../ViewHelperBaseTestcase.php');
 
 /**
  * Test for \TYPO3\CMS\Fluid\ViewHelpers\Link\EmailViewHelper
index 4b3530b..dd8229a 100644 (file)
@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
-require_once dirname(__FILE__) . '/ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/ViewHelperBaseTestcase.php';
 
 /**
  * Testcase for RenderChildren ViewHelper
index d1fe7a9..54cce72 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for RenderViewHelper
index 63d791c..f07f7f9 100644 (file)
@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Security;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
-require_once dirname(__FILE__) . '/../ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/../ViewHelperBaseTestcase.php';
 
 /**
  * Testcase for security.ifAuthenticated view helper
index 6ea43fd..abd3b98 100644 (file)
@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Security;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
-require_once dirname(__FILE__) . '/../ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/../ViewHelperBaseTestcase.php';
 
 /**
  * Testcase for security.ifHasRole view helper
index e9b307b..7aefdef 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for ElseViewHelper
index 6390742..ca17e4a 100644 (file)
@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Uri;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
-require_once dirname(__FILE__) . '/../ViewHelperBaseTestcase.php';
+require_once __DIR__ . '/../ViewHelperBaseTestcase.php';
 
 /**
  * Testcase for the email uri view helper
index 387c7bc..8816024 100644 (file)
@@ -11,7 +11,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Uri;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-require_once(dirname(__FILE__) . '/../ViewHelperBaseTestcase.php');
+require_once(__DIR__ . '/../ViewHelperBaseTestcase.php');
 
 /**
  * Testcase for the external uri view helper