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

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

checks if the object tree returned by the TypoScript parser reflects source code fixture 02
    public function parserCorrectlyParsesFixture02()
    {
        $sourceCode = $this->readTypoScriptFixture('ParserTestTypoScriptFixture02');
        $expectedParseTree = array('myObject' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => "Sorry, we're closed -- double quotes like \" do not need to be escaped."), 'anotherObject' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'And I said: "Hooray" -- single quotes like \' do not need to be escaped'), 'kaspersObject' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'The end of this line is a backslash\\', 'bar' => 'Here comes \\ a backslash in the middle'));
        $actualParseTree = $this->parser->parse($sourceCode);
        $this->assertSame($expectedParseTree, $actualParseTree, 'The parse tree was not as expected after parsing fixture 02.');
    }