PhlyTest\Mustache\MustacheTest::testAllowsAliasingPartials PHP Method

testAllowsAliasingPartials() public method

    public function testAllowsAliasingPartials()
    {
        $view = new TestAsset\ViewWithObjectForPartial();
        $test = $this->mustache->render('template-with-aliased-partial', $view, array('winnings' => 'partial-template'));
        $expected = 'Welcome, Joe! You just won $1000 (which is $600 after tax)';
        $this->assertEquals($expected, trim($test));
    }
MustacheTest