TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 executeValueModifierDataProvider ()
 
 executeValueModifierReturnsModifiedResult ($modifierName, $currentValue, $modifierArgument, $expected)
 
 typoScriptIsParsedToArray ($typoScript, array $expected)
 
 typoScriptIsParsedToArrayDataProvider ()
 
 setValCanBeCalledWithArrayValueParameter ()
 
 setValCanBeCalledWithStringValueParameter ()
 
 parseNextKeySegmentReturnsCorrectNextKeySegment ($key, $expectedKeySegment, $expectedRemainingKey)
 
 parseNextKeySegmentReturnsCorrectNextKeySegmentDataProvider ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $typoScriptParser = NULL
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Test case for

Definition at line 20 of file TypoScriptParserTest.php.

Member Function Documentation

◆ executeValueModifierDataProvider()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::executeValueModifierDataProvider ( )

Data provider for executeValueModifierReturnsModifiedResult

Returns
array modifier name, modifier arguments, current value, expected result

Definition at line 42 of file TypoScriptParserTest.php.

◆ executeValueModifierReturnsModifiedResult()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::executeValueModifierReturnsModifiedResult (   $modifierName,
  $currentValue,
  $modifierArgument,
  $expected 
)
Test:
executeValueModifierDataProvider

Definition at line 225 of file TypoScriptParserTest.php.

◆ parseNextKeySegmentReturnsCorrectNextKeySegment()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::parseNextKeySegmentReturnsCorrectNextKeySegment (   $key,
  $expectedKeySegment,
  $expectedRemainingKey 
)
Test:
parseNextKeySegmentReturnsCorrectNextKeySegmentDataProvider

Definition at line 685 of file TypoScriptParserTest.php.

◆ parseNextKeySegmentReturnsCorrectNextKeySegmentDataProvider()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::parseNextKeySegmentReturnsCorrectNextKeySegmentDataProvider ( )
Returns
array

Definition at line 694 of file TypoScriptParserTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::setUp ( )
protected

Set up

Returns
void

Definition at line 32 of file TypoScriptParserTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\buildAccessibleProxy().

◆ setValCanBeCalledWithArrayValueParameter()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::setValCanBeCalledWithArrayValueParameter ( )
Test:

Definition at line 664 of file TypoScriptParserTest.php.

◆ setValCanBeCalledWithStringValueParameter()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::setValCanBeCalledWithStringValueParameter ( )
Test:

Definition at line 674 of file TypoScriptParserTest.php.

◆ typoScriptIsParsedToArray()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::typoScriptIsParsedToArray (   $typoScript,
array  $expected 
)
Parameters
string$typoScript
array$expectedtypoScriptIsParsedToArrayDataProvider
Test:

Definition at line 236 of file TypoScriptParserTest.php.

◆ typoScriptIsParsedToArrayDataProvider()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::typoScriptIsParsedToArrayDataProvider ( )
Returns
array

Definition at line 244 of file TypoScriptParserTest.php.

Member Data Documentation

◆ $typoScriptParser

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::$typoScriptParser = NULL
protected

Definition at line 25 of file TypoScriptParserTest.php.