[TASK] Extend TypoScriptParser test cases 42/26842/2
authorOliver Hader <oliver@typo3.org>
Wed, 15 Jan 2014 14:25:55 +0000 (15:25 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 15 Jan 2014 15:06:20 +0000 (16:06 +0100)
Resolves: #55026
Releases: 6.2
Change-Id: Ia1d03b4c3db6bb224b920b7252bd68df70053515
Reviewed-on: https://review.typo3.org/26842
Reviewed-by: Oliver Klee
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php

index ae3d609..3e7c22a 100644 (file)
@@ -328,6 +328,110 @@ class TypoScriptParserTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                                        'second' => '2',
                                ),
                        ),
+                       'nested assignment repeated segment names' => array(
+                               'test.test.test = 1',
+                               array(
+                                       'test.' => array(
+                                               'test.' => array(
+                                                       'test' => '1',
+                                               ),
+                                       )
+                               ),
+                       ),
+                       'simple assignment operator character as value "="' => array(
+                               'test ==TEST=',
+                               array(
+                                       'test' => '=TEST=',
+                               ),
+                       ),
+                       'nested assignment operator character as value "="' => array(
+                               'test.test ==TEST=',
+                               array(
+                                       'test.' => array(
+                                               'test' => '=TEST=',
+                                       ),
+                               ),
+                       ),
+                       'simple assignment character as value "<"' => array(
+                               'test =<TEST>',
+                               array(
+                                       'test' => '<TEST>',
+                               ),
+                       ),
+                       'nested assignment character as value "<"' => array(
+                               'test.test =<TEST>',
+                               array(
+                                       'test.' => array(
+                                               'test' => '<TEST>',
+                                       ),
+                               ),
+                       ),
+                       'simple assignment character as value ">"' => array(
+                               'test =>TEST<',
+                               array(
+                                       'test' => '>TEST<',
+                               ),
+                       ),
+                       'nested assignment character as value ">"' => array(
+                               'test.test =>TEST<',
+                               array(
+                                       'test.' => array(
+                                               'test' => '>TEST<',
+                                       ),
+                               ),
+                       ),
+                       'nested assignment repeated segment names with whitespaces' => array(
+                               'test.test.test = 1' . " \t",
+                               array(
+                                       'test.' => array(
+                                               'test.' => array(
+                                                       'test' => '1',
+                                               ),
+                                       )
+                               ),
+                       ),
+                       'simple assignment operator character as value "=" with whitespaces' => array(
+                               'test = =TEST=' . " \t",
+                               array(
+                                       'test' => '=TEST=',
+                               ),
+                       ),
+                       'nested assignment operator character as value "=" with whitespaces' => array(
+                               'test.test = =TEST=' . " \t",
+                               array(
+                                       'test.' => array(
+                                               'test' => '=TEST=',
+                                       ),
+                               ),
+                       ),
+                       'simple assignment character as value "<" with whitespaces' => array(
+                               'test = <TEST>' . " \t",
+                               array(
+                                       'test' => '<TEST>',
+                               ),
+                       ),
+                       'nested assignment character as value "<" with whitespaces' => array(
+                               'test.test = <TEST>' . " \t",
+                               array(
+                                       'test.' => array(
+                                               'test' => '<TEST>',
+                                       ),
+                               ),
+                       ),
+                       'simple assignment character as value ">" with whitespaces' => array(
+                               'test = >TEST<' . " \t",
+                               array(
+                                       'test' => '>TEST<',
+                               ),
+                       ),
+                       'nested assignment character as value ">" with whitespaces' => array(
+                               'test.test = >TEST<',
+                               array(
+                                       'test.' => array(
+                                               'test' => '>TEST<',
+                                       ),
+                               ),
+                       ),
                        'CSC example #1' => array(
                                'linkParams.ATagParams.dataWrap =  class="{$styles.content.imgtext.linkWrap.lightboxCssClass}" rel="{$styles.content.imgtext.linkWrap.lightboxRelAttribute}"',
                                array(