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

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

checks if the object tree returned by the TypoScript parser reflects source code fixture 08
    public function parserCorrectlyParsesFixture08()
    {
        $sourceCode = $this->readTypoScriptFixture('ParserTestTypoScriptFixture08');
        $expectedParseTree = array('object1' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Hello world!', 'foo' => 42), 'object2' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Hello world!', 'foo' => 42), 'lib' => array('object3' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Another message'), 'object4' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Another message'), 'object5' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Another message'), 'object6' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Hello world!', 'foo' => 21)), 'object7' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Hello world!'));
        $actualParseTree = $this->parser->parse($sourceCode);
        $this->assertSame($expectedParseTree, $actualParseTree, 'The parse tree was not as expected after parsing fixture 08.');
    }