Phalcon\Test\Unit\Mvc\View\SimpleTest::testRenderStandard PHP Method

testRenderStandard() public method

Tests render
Since: 2014-05-28
Author: Kamil Skowron ([email protected])
public testRenderStandard ( )
    public function testRenderStandard()
    {
        $this->specify('The view rendering does not work as expected', function () {
            $view = new Simple();
            $view->setViewsDir(PATH_DATA . 'views' . DIRECTORY_SEPARATOR);
            expect($view->render('test2/index'))->equals('We are here');
            expect($view->getContent())->equals('We are here');
        });
    }