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

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

checks if the object tree returned by the TypoScript parser reflects source code fixture 14
    public function parserCorrectlyParsesFixture14()
    {
        $sourceCode = $this->readTypoScriptFixture('ParserTestTypoScriptFixture14');
        $expectedParseTree = array('object1' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Curly braces like this {} or {that} are ignored.'), 'object2' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Curly braces like this {} or {that} are ignored.'), 'object3' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Slashes // or hashes # or /* signs are not interpreted as comments.'), 'object4' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Slashes // or hashes # or /* signs are not interpreted as comments.'));
        $actualParseTree = $this->parser->parse($sourceCode);
        $this->assertSame($expectedParseTree, $actualParseTree, 'The parse tree was not as expected after parsing fixture 14.');
    }