PhlyTest\Mustache\MustacheTest::testCanUseMethodReturnValueForSubstitutions PHP Method

testCanUseMethodReturnValueForSubstitutions() public method

    public function testCanUseMethodReturnValueForSubstitutions()
    {
        $chris = new TestAsset\ViewWithMethod();
        $test = $this->mustache->render('template-with-method-substitution', $chris);
        $expected = <<<EOT
Hello Chris
You have just won \$600000!
EOT;
        $this->assertEquals($expected, trim($test));
    }
MustacheTest