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

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

checks if the object tree returned by the TypoScript parser reflects source code fixture 03
    public function parserCorrectlyParsesFixture03()
    {
        $sourceCode = $this->readTypoScriptFixture('ParserTestTypoScriptFixture03');
        $expectedParseTree = array('object1' => array('mySubObject' => array('mySubSubObject' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'Espresso is a fine beverage.'))), 'object2' => array('__objectType' => 'Neos.Fusion:ObjectWithArrayProperty', '__value' => null, '__eelExpression' => null, 'theArray' => array('theKey' => 'theValue')), 'object3' => array('__objectType' => 'Neos.Fusion:ObjectWithArrayProperty', '__value' => null, '__eelExpression' => null, 'theArray' => array('theKey' => array('__objectType' => 'Neos.Fusion:Text', '__value' => null, '__eelExpression' => null, 'value' => 'theValue'))));
        $actualParseTree = $this->parser->parse($sourceCode);
        $this->assertSame($expectedParseTree, $actualParseTree, 'The parse tree was not as expected after parsing fixture 03.');
    }