Sonata\Test\Component\Generator\MustacheTest::testRenderString PHP Method

testRenderString() public method

public testRenderString ( )
    public function testRenderString()
    {
        $testInput = '{{ replace }}.42 toubidou {{ second }}';
        $expectedOutput = 'abc.42 toubidou def';
        $this->assertEquals($expectedOutput, Mustache::renderString($testInput, array('replace' => 'abc', 'second' => 'def')));
    }
MustacheTest