class ControllerTest extends Zend_Test_PHPUnit_ControllerTestCase
{
public $object;
public function setUp() {
$this->bootstrap = array($this, 'boostrap');
parent::setUp();
}
public function bootstrap(){
$this->application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$this->application->bootstrap();
}
public function testIndexAction(){
// body
}
}
This is the class for the test. My question is how to implement the testIndexAction where the actual command on the command prompt is:
php zfrun.php -a ..index
zfrun.phpcome from? Can you link to its source or post it if it's short? Zend'sControllerTestCaseis designed to be given a route for dispatching, rendering the view, and making assertions about the resulting content. - David Harkness