TYPO3 CMS  TYPO3_7-6
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)
 
 executeValueModifierInvalidDataProvider ()
 
 executeValueModifierThrowsException ($modifierName, $currentValue, $modifierArgument)
 
 includeFileDataProvider ()
 
 includeFilesWithConditions ($typoScript)
 
 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, $methods=[], array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 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 = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case for

Definition at line 22 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 45 of file TypoScriptParserTest.php.

◆ executeValueModifierInvalidDataProvider()

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

Data provider for executeValueModifierThrowsException

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

Definition at line 240 of file TypoScriptParserTest.php.

◆ executeValueModifierReturnsModifiedResult()

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

Definition at line 229 of file TypoScriptParserTest.php.

◆ executeValueModifierThrowsException()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::executeValueModifierThrowsException (   $modifierName,
  $currentValue,
  $modifierArgument 
)
Test:
executeValueModifierInvalidDataProvider

Definition at line 260 of file TypoScriptParserTest.php.

◆ includeFileDataProvider()

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

Definition at line 269 of file TypoScriptParserTest.php.

◆ includeFilesWithConditions()

TYPO3\CMS\Core\Tests\Unit\TypoScript\Parser\TypoScriptParserTest::includeFilesWithConditions (   $typoScript)
Test:
includeFileDataProvider

Definition at line 291 of file TypoScriptParserTest.php.

◆ parseNextKeySegmentReturnsCorrectNextKeySegment()

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

Definition at line 757 of file TypoScriptParserTest.php.

◆ parseNextKeySegmentReturnsCorrectNextKeySegmentDataProvider()

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

Definition at line 767 of file TypoScriptParserTest.php.

◆ setUp()

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

Set up

Returns
void

Definition at line 34 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 734 of file TypoScriptParserTest.php.

◆ setValCanBeCalledWithStringValueParameter()

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

Definition at line 745 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 304 of file TypoScriptParserTest.php.

◆ typoScriptIsParsedToArrayDataProvider()

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

Definition at line 313 of file TypoScriptParserTest.php.

Member Data Documentation

◆ $typoScriptParser

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

Definition at line 27 of file TypoScriptParserTest.php.