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

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

checks if the object tree returned by the TypoScript parser reflects source code fixture 10
    public function parserCorrectlyParsesFixture10()
    {
        $sourceCode = $this->readTypoScriptFixture('ParserTestTypoScriptFixture10');
        $expectedParseTree = array('newObject1' => array('__objectType' => 'Neos.Fusion:Text', 'value' => array('__value' => 'Hello', '__objectType' => null, '__eelExpression' => null, '__meta' => array('process' => array(1 => array('__eelExpression' => 'value + \' world\'', '__value' => null, '__objectType' => null), 'other' => array('__eelExpression' => 'value + \' world\'', '__value' => null, '__objectType' => null), 'default' => array('expression' => array('__eelExpression' => 'value + \' world\'', '__value' => null, '__objectType' => null), '__meta' => array('position' => 'start'))))), '__value' => null, '__eelExpression' => null), 'newObject2' => array('__objectType' => 'Neos.Fusion:Text', 'value' => 'Hello', '__meta' => array('process' => array(1 => array('__eelExpression' => 'value + \' world\'', '__value' => null, '__objectType' => null))), '__value' => null, '__eelExpression' => null), '__prototypes' => array('Neos.Fusion:Foo' => array('__meta' => array('process' => array(1 => array('__eelExpression' => 'value + \' world\'', '__value' => null, '__objectType' => null))))));
        $actualParseTree = $this->parser->parse($sourceCode);
        $this->assertEquals($expectedParseTree, $actualParseTree, 'The parse tree was not as expected after parsing fixture 10.');
    }