PHP Class Neos\Fusion\Tests\Unit\Core\ParserTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$parser Neos\Fusion\Core\Parser

Public Methods

Method Description
objectManagerCallback ( ) : object call back for mocking the object factory
objectManagerIsRegisteredCallback ( ) : boolean Call back for mocking the object manager's isRegistered() method
parserCorrectlyParsesComments01 ( ) Checks if comments in comments are parsed correctly
parserCorrectlyParsesFixture01 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 01
parserCorrectlyParsesFixture02 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 02
parserCorrectlyParsesFixture03 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 03
parserCorrectlyParsesFixture04 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 04
parserCorrectlyParsesFixture05 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 05
parserCorrectlyParsesFixture07 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 07
parserCorrectlyParsesFixture08 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 08
parserCorrectlyParsesFixture10 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 10
parserCorrectlyParsesFixture13 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 13
parserCorrectlyParsesFixture14 ( ) checks if the object tree returned by the TypoScript parser reflects source code fixture 14
parserCorrectlyParsesFixture15 ( )
parserCorrectlyParsesFixture16 ( )
parserCorrectlyParsesFixture17 ( )
parserCorrectlyParsesFixture18 ( ) Checks if namespace declarations are expanded correctly
parserCorrectlyParsesFixture19 ( ) Checks if simple values (string, boolean, integer) are parsed correctly
parserCorrectlyParsesFixture20 ( ) Checks if path with an underscore is parsed correctly
parserThrowsExceptionOnFixture16b ( )
parserThrowsTypoScriptExceptionIfNamespaceDeclarationIsInvalid ( ) Checks if a leading slash in the namespace declaration throws an exception

Protected Methods

Method Description
getExpectedParseTreeForFixture16 ( )
readTypoScriptFixture ( string $fixtureName ) : string
setUp ( ) Sets up this test case

Method Details

getExpectedParseTreeForFixture16() protected method

objectManagerCallback() public method

call back for mocking the object factory
public objectManagerCallback ( ) : object
return object fixture objects ...

objectManagerIsRegisteredCallback() public method

Call back for mocking the object manager's isRegistered() method

parserCorrectlyParsesComments01() public method

Checks if comments in comments are parsed correctly

parserCorrectlyParsesFixture01() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 01

parserCorrectlyParsesFixture02() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 02

parserCorrectlyParsesFixture03() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 03

parserCorrectlyParsesFixture04() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 04

parserCorrectlyParsesFixture05() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 05

parserCorrectlyParsesFixture07() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 07

parserCorrectlyParsesFixture08() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 08

parserCorrectlyParsesFixture10() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 10

parserCorrectlyParsesFixture13() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 13

parserCorrectlyParsesFixture14() public method

checks if the object tree returned by the TypoScript parser reflects source code fixture 14

parserCorrectlyParsesFixture15() public method

parserCorrectlyParsesFixture16() public method

parserCorrectlyParsesFixture17() public method

parserCorrectlyParsesFixture18() public method

Checks if namespace declarations are expanded correctly

parserCorrectlyParsesFixture19() public method

Checks if simple values (string, boolean, integer) are parsed correctly

parserCorrectlyParsesFixture20() public method

Checks if path with an underscore is parsed correctly

parserThrowsExceptionOnFixture16b() public method

parserThrowsTypoScriptExceptionIfNamespaceDeclarationIsInvalid() public method

Checks if a leading slash in the namespace declaration throws an exception

readTypoScriptFixture() protected method

protected readTypoScriptFixture ( string $fixtureName ) : string
$fixtureName string File name of the TypoScript fixture to be read (without .fusion)
return string The content of the fixture

setUp() protected method

Sets up this test case
protected setUp ( )

Property Details

$mockObjectManager protected property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $mockObjectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface

$parser protected property

protected Parser,Neos\Fusion\Core $parser
return Neos\Fusion\Core\Parser