Neos\Fusion\Tests\Unit\Core\ParserTest::parserCorrectlyParsesFixture05 PHP Метод

parserCorrectlyParsesFixture05() публичный Метод

checks if the object tree returned by the TypoScript parser reflects source code fixture 05
    public function parserCorrectlyParsesFixture05()
    {
        $sourceCode = $this->readTypoScriptFixture('ParserTestTypoScriptFixture05');
        $expectedParseTree = array('firstObject' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Go outside. The graphics are AMAZING!'), 'firstObject2' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Go outside. The graphics are AMAZING!'), 'firstObject3' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Overridden value'), 'firstObject4' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Ugly syntax with no space works!'), 'secondObject' => array('subObject' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => '27°C and a blue sky.')), 'thirdObject' => array('subObject' => array('subSubObject' => array('someMessage' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Fully or hard tail?', 'value2' => 'I don\'t know.')), 'anotherSubSubObject' => array('someMessage' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Hard')))));
        $actualParseTree = $this->parser->parse($sourceCode);
        $this->assertSame($expectedParseTree, $actualParseTree, 'The parse tree was not as expected after parsing fixture 05.');
    }