TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
TypoScriptParserTest Class Reference
Inheritance diagram for TypoScriptParserTest:
UnitTestCase BaseTestCase

Public Member Functions

 executeValueModifierDataProvider ()
 
 executeValueModifierReturnsModifiedResult ($modifierName, $currentValue, $modifierArgument, $expected)
 
 executeValueModifierInvalidDataProvider ()
 
 executeValueModifierThrowsException ($modifierName, $currentValue, $modifierArgument)
 
 invalidCharactersInObjectNamesAreReported ()
 
 doubleSlashCommentsDataProvider ()
 
 doubleSlashCommentsAreValid ($typoScript)
 
 singleSlashCommentsDataProvider ()
 
 singleSlashHeadedCommentsAreDeprecated ($typoScript)
 
 typoScriptIsParsedToArray ($typoScript, array $expected)
 
 typoScriptIsParsedToArrayDataProvider ()
 
 setValCanBeCalledWithArrayValueParameter ()
 
 setValCanBeCalledWithStringValueParameter ()
 
 parseNextKeySegmentReturnsCorrectNextKeySegment ($key, $expectedKeySegment, $expectedRemainingKey)
 
 parseNextKeySegmentReturnsCorrectNextKeySegmentDataProvider ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from 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,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $typoScriptParser = null
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case for

Definition at line 20 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

Member Function Documentation

doubleSlashCommentsAreValid (   $typoScript)
Test:
doubleSlashCommentsDataProvider

Definition at line 292 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

doubleSlashCommentsDataProvider ( )
Returns
array

Definition at line 279 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

executeValueModifierDataProvider ( )

Data provider for executeValueModifierReturnsModifiedResult

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

Definition at line 43 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

executeValueModifierInvalidDataProvider ( )

Data provider for executeValueModifierThrowsException

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

Definition at line 238 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

executeValueModifierReturnsModifiedResult (   $modifierName,
  $currentValue,
  $modifierArgument,
  $expected 
)
Test:
executeValueModifierDataProvider

Definition at line 227 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

executeValueModifierThrowsException (   $modifierName,
  $currentValue,
  $modifierArgument 
)
Test:
executeValueModifierInvalidDataProvider

Definition at line 258 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

invalidCharactersInObjectNamesAreReported ( )
parseNextKeySegmentReturnsCorrectNextKeySegment (   $key,
  $expectedKeySegment,
  $expectedRemainingKey 
)
Test:
parseNextKeySegmentReturnsCorrectNextKeySegmentDataProvider

Definition at line 780 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

parseNextKeySegmentReturnsCorrectNextKeySegmentDataProvider ( )
Returns
array

Definition at line 790 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

setUp ( )
protected

Set up

Returns
void

Definition at line 32 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

References BaseTestCase\buildAccessibleProxy().

setValCanBeCalledWithArrayValueParameter ( )
setValCanBeCalledWithStringValueParameter ( )
singleSlashCommentsDataProvider ( )
Returns
array

Definition at line 301 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

singleSlashHeadedCommentsAreDeprecated (   $typoScript)
Test:
singleSlashCommentsDataProvider

Definition at line 314 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

typoScriptIsParsedToArray (   $typoScript,
array  $expected 
)
Parameters
string$typoScript
array$expectedtypoScriptIsParsedToArrayDataProvider
Test:

Definition at line 327 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

typoScriptIsParsedToArrayDataProvider ( )
Returns
array

Definition at line 336 of file Unit/TypoScript/Parser/TypoScriptParserTest.php.

Member Data Documentation

$typoScriptParser = null
protected