PhlyTest\Mustache\MustacheTest::testEscapesStandardCharacters PHP Method

testEscapesStandardCharacters() public method

    public function testEscapesStandardCharacters()
    {
        $view = array('foo' => 't&h\\e"s<e>');
        $test = $this->mustache->render('{{foo}}', $view);
        $this->assertEquals('t&amp;h\\e&quot;s&lt;e&gt;', $test);
    }
MustacheTest