Redaxscript\Tests\ParserTest::testRegistry PHP Метод

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

testRegistry
С версии: 2.5.0
public testRegistry ( array $registryArray = [], string $content = null, string $expect = null )
$registryArray array
$content string
$expect string
    public function testRegistry($registryArray = [], $content = null, $expect = null)
    {
        /* setup */
        $this->_registry->init($registryArray);
        $parser = new Parser($this->_registry, $this->_language);
        $parser->init($content);
        /* actual */
        $actual = $parser->getOutput();
        /* compare */
        $this->assertEquals($expect, $actual);
    }