Hi guys.
Please Help.
Testing a class with a function that uses a renderPartial result in a Fatal Error. The class works ok, the problems is not the class. I simplified the case to a very simple testing and the error remains.
The testing is the following
public function testConnection(){
//conexion testing - here Yii:app works
$cx=Yii::app()->db;
$this->assertNotEquals(NULL, $cx);
//this doesn't work!!
$text=Yii::app()->controller->renderPartial('ROUTE TO A VIEW', array(),TRUE);
}//
The output window’s text:
PHPUnit 3.4.15 by Sebastian Bergmann.
Fatal error: Call to a member function renderPartial() on a non-object in -THE CLASS FILE(the line with the renderPArtial-
Yii version 1.1.3
IDE netbeans
Some suggest?
What can I do to test a class with a renderPartial?
Thanks