PhlyTest\Mustache\MustacheTest::testCanUseObjectPropertiesForSubstitutions PHP Method

testCanUseObjectPropertiesForSubstitutions() public method

    public function testCanUseObjectPropertiesForSubstitutions()
    {
        $view = new \stdClass();
        $view->planet = 'World';
        $test = $this->mustache->render('Hello {{planet}}', $view);
        $this->assertEquals('Hello World', $test);
    }
MustacheTest