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

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство Type Description
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$parser Neos\Fusion\Core\Parser

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
getExpectedParseTreeForFixture16 ( )
readTypoScriptFixture ( string $fixtureName ) : string
setUp ( ) Sets up this test case

Method Details

getExpectedParseTreeForFixture16() protected méthode

objectManagerCallback() public méthode

call back for mocking the object factory
public objectManagerCallback ( ) : object
Résultat object fixture objects ...

objectManagerIsRegisteredCallback() public méthode

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

parserCorrectlyParsesComments01() public méthode

Checks if comments in comments are parsed correctly

parserCorrectlyParsesFixture01() public méthode

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

parserCorrectlyParsesFixture02() public méthode

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

parserCorrectlyParsesFixture03() public méthode

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

parserCorrectlyParsesFixture04() public méthode

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

parserCorrectlyParsesFixture05() public méthode

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

parserCorrectlyParsesFixture07() public méthode

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

parserCorrectlyParsesFixture08() public méthode

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

parserCorrectlyParsesFixture10() public méthode

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

parserCorrectlyParsesFixture13() public méthode

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

parserCorrectlyParsesFixture14() public méthode

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

parserCorrectlyParsesFixture15() public méthode

parserCorrectlyParsesFixture16() public méthode

parserCorrectlyParsesFixture17() public méthode

parserCorrectlyParsesFixture18() public méthode

Checks if namespace declarations are expanded correctly

parserCorrectlyParsesFixture19() public méthode

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

parserCorrectlyParsesFixture20() public méthode

Checks if path with an underscore is parsed correctly

parserThrowsExceptionOnFixture16b() public méthode

parserThrowsTypoScriptExceptionIfNamespaceDeclarationIsInvalid() public méthode

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

readTypoScriptFixture() protected méthode

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

setUp() protected méthode

Sets up this test case
protected setUp ( )

Property Details

$mockObjectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $mockObjectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface

$parser protected_oe property

protected Parser,Neos\Fusion\Core $parser
Résultat Neos\Fusion\Core\Parser