‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest:

Public Member Functions

 build (string $source, RootNode $expectedAst)
 
 buildCreatesSameAstWhenUnserialized (string $source, RootNode $expectedAst)
 
 buildCommentAware (string $source, RootNode $expectedAst)
 
 buildCompatArray (string $source, RootNode $_, array $expectedArray)
 
 buildCompatArrayCommentAware (string $source, RootNode $_, array $expectedArray)
 
 buildWithPreviousValue (string $source, RootNode $expectedAst)
 
 buildWithPreviousValueCreatesSameAstWhenUnserialized (string $source, RootNode $expectedAst)
 
 buildWithPreviousValueCommentAware (string $source, RootNode $_, RootNode $expectedAst)
 
 buildReference (string $source, RootNode $expectedAst)
 
 buildReferenceCreatesSameAstWhenUnserialized (string $source, RootNode $expectedAst)
 
 buildReferenceCommentAware (string $source, RootNode $expectedAst)
 
 buildReferenceArray (string $source, RootNode $_, array $expectedArray)
 
 buildReferenceArrayCommentAware (string $source, RootNode $_, array $expectedArray)
 
 buildConstant (string $source, array $constants, RootNode $expectedAst)
 
 buildConstantCreatesSameAstWhenUnserialized (string $source, array $constants, RootNode $expectedAst)
 
 buildConstantCommentAware (string $source, array $constants, RootNode $expectedAst)
 
 buildConstantCompatArray (string $source, array $constants, RootNode $_, array $expectedArray)
 
 buildConstantCompatArrayCommentAware (string $source, array $constants, RootNode $_, array $expectedArray)
 
 buildExtendsGivenAst ()
 
 buildExtendsGivenAstCommentAware ()
 
 functionSortListThrowsSortingNonNumericListNumeric (string $source)
 
 functionSortListThrowsSortingNonNumericListNumericCommentAware (string $source)
 
 functionGetEnv (?string $envVarName, ?string $envVarValue, $source, RootNode $expectedAst)
 
 functionGetEnvCommentAware (?string $envVarName, ?string $envVarValue, $source, RootNode $expectedAst)
 
 flatten (string $typoscript, array $expected)
 
 flattenCommentAware (string $typoscript, array $expected)
 
 buildWithComments (string $source, RootNode $expectedAst)
 
 buildWithCommentsSetsPreviousValue ()
 

Static Public Member Functions

static buildDataProvider ()
 
static buildWithPreviousValueDataProvider ()
 
static buildReferenceDataProvider ()
 
static buildConstantDataProvider ()
 
static functionSortListThrowsSortingNonNumericListNumericDataProvider ()
 
static functionGetEnvDataProvider ()
 
static flattenDataProvider ()
 
static buildWithCommentsDataProvider ()
 

Detailed Description

This tests AstBuilder and CommentAwareAstBuilder

Definition at line 40 of file AstBuilderInterfaceTest.php.

Member Function Documentation

◆ build()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::build ( string  $source,
RootNode  $expectedAst 
)

Definition at line 1283 of file AstBuilderInterfaceTest.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildCompatArray(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildCompatArrayCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildConstant(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildConstantCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildConstantCompatArray(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildConstantCompatArrayCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildConstantCreatesSameAstWhenUnserialized(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildCreatesSameAstWhenUnserialized(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildExtendsGivenAst(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildExtendsGivenAstCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildReference(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildReferenceArray(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildReferenceArrayCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildReferenceCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildReferenceCreatesSameAstWhenUnserialized(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildWithComments(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildWithCommentsSetsPreviousValue(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildWithPreviousValue(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildWithPreviousValueCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\buildWithPreviousValueCreatesSameAstWhenUnserialized(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\flatten(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\flattenCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\functionGetEnv(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\functionGetEnvCommentAware(), TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\functionSortListThrowsSortingNonNumericListNumeric(), and TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\functionSortListThrowsSortingNonNumericListNumericCommentAware().

◆ buildCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildCommentAware ( string  $source,
RootNode  $expectedAst 
)

◆ buildCompatArray()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildCompatArray ( string  $source,
RootNode  $_,
array  $expectedArray 
)

◆ buildCompatArrayCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildCompatArrayCommentAware ( string  $source,
RootNode  $_,
array  $expectedArray 
)

◆ buildConstant()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildConstant ( string  $source,
array  $constants,
RootNode  $expectedAst 
)

◆ buildConstantCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildConstantCommentAware ( string  $source,
array  $constants,
RootNode  $expectedAst 
)

◆ buildConstantCompatArray()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildConstantCompatArray ( string  $source,
array  $constants,
RootNode  $_,
array  $expectedArray 
)

◆ buildConstantCompatArrayCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildConstantCompatArrayCommentAware ( string  $source,
array  $constants,
RootNode  $_,
array  $expectedArray 
)

◆ buildConstantCreatesSameAstWhenUnserialized()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildConstantCreatesSameAstWhenUnserialized ( string  $source,
array  $constants,
RootNode  $expectedAst 
)

◆ buildConstantDataProvider()

static TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildConstantDataProvider ( )
static

Definition at line 1881 of file AstBuilderInterfaceTest.php.

◆ buildCreatesSameAstWhenUnserialized()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildCreatesSameAstWhenUnserialized ( string  $source,
RootNode  $expectedAst 
)

◆ buildDataProvider()

static TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildDataProvider ( )
static

Definition at line 42 of file AstBuilderInterfaceTest.php.

◆ buildExtendsGivenAst()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildExtendsGivenAst ( )

◆ buildExtendsGivenAstCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildExtendsGivenAstCommentAware ( )

◆ buildReference()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildReference ( string  $source,
RootNode  $expectedAst 
)

◆ buildReferenceArray()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildReferenceArray ( string  $source,
RootNode  $_,
array  $expectedArray 
)

◆ buildReferenceArrayCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildReferenceArrayCommentAware ( string  $source,
RootNode  $_,
array  $expectedArray 
)

◆ buildReferenceCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildReferenceCommentAware ( string  $source,
RootNode  $expectedAst 
)

◆ buildReferenceCreatesSameAstWhenUnserialized()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildReferenceCreatesSameAstWhenUnserialized ( string  $source,
RootNode  $expectedAst 
)

◆ buildReferenceDataProvider()

static TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildReferenceDataProvider ( )
static

Definition at line 1526 of file AstBuilderInterfaceTest.php.

◆ buildWithComments()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildWithComments ( string  $source,
RootNode  $expectedAst 
)

This is for CommentAwareAstBuilder only, AstBuilder ignores comments.

Definition at line 2718 of file AstBuilderInterfaceTest.php.

References TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest\build().

◆ buildWithCommentsDataProvider()

static TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildWithCommentsDataProvider ( )
static

Definition at line 2353 of file AstBuilderInterfaceTest.php.

◆ buildWithCommentsSetsPreviousValue()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildWithCommentsSetsPreviousValue ( )

◆ buildWithPreviousValue()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildWithPreviousValue ( string  $source,
RootNode  $expectedAst 
)

◆ buildWithPreviousValueCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildWithPreviousValueCommentAware ( string  $source,
RootNode  $_,
RootNode  $expectedAst 
)

◆ buildWithPreviousValueCreatesSameAstWhenUnserialized()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildWithPreviousValueCreatesSameAstWhenUnserialized ( string  $source,
RootNode  $expectedAst 
)

◆ buildWithPreviousValueDataProvider()

static TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::buildWithPreviousValueDataProvider ( )
static

Definition at line 1331 of file AstBuilderInterfaceTest.php.

◆ flatten()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::flatten ( string  $typoscript,
array  $expected 
)

◆ flattenCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::flattenCommentAware ( string  $typoscript,
array  $expected 
)

◆ flattenDataProvider()

static TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::flattenDataProvider ( )
static

Definition at line 2248 of file AstBuilderInterfaceTest.php.

◆ functionGetEnv()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::functionGetEnv ( ?string  $envVarName,
?string  $envVarValue,
  $source,
RootNode  $expectedAst 
)

◆ functionGetEnvCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::functionGetEnvCommentAware ( ?string  $envVarName,
?string  $envVarValue,
  $source,
RootNode  $expectedAst 
)

◆ functionGetEnvDataProvider()

static TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::functionGetEnvDataProvider ( )
static

Definition at line 2144 of file AstBuilderInterfaceTest.php.

◆ functionSortListThrowsSortingNonNumericListNumeric()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::functionSortListThrowsSortingNonNumericListNumeric ( string  $source)

◆ functionSortListThrowsSortingNonNumericListNumericCommentAware()

TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::functionSortListThrowsSortingNonNumericListNumericCommentAware ( string  $source)

◆ functionSortListThrowsSortingNonNumericListNumericDataProvider()

static TYPO3\CMS\Core\Tests\Unit\TypoScript\AST\AstBuilderInterfaceTest::functionSortListThrowsSortingNonNumericListNumericDataProvider ( )
static

Definition at line 2109 of file AstBuilderInterfaceTest.php.