PopTest\Mvc\ViewTest::testRender PHP Method

testRender() public method

public testRender ( )
    public function testRender()
    {
        $v = View::factory('some template with a [{var}]', array('var' => 'variable'));
        $view = $v->render(true);
        ob_start();
        $v->render();
        $output = ob_get_clean();
        $this->assertEquals('some template with a variable', $view);
        $this->assertEquals('some template with a variable', (string) $v);
        $this->assertEquals('some template with a variable', $output);
    }