Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class IndexControllerTest extends Zend_Test_PHPUnit_ControllerTestCase
- {
- protected function setUp()
- {
- $this->bootstrap = new Zend_Application(
- APPLICATION_ENV,
- APPLICATION_PATH . '/configs/application.ini');
- parent::setUp();
- }
- public function testIndexPageCanBeLoaded()
- {
- $this->dispatch('/');
- // assertions
- $this->assertNotController('error');
- $this->assertNotAction('error');
- $this->assertController('index');
- $this->assertAction('index');
- }
- }
Add Comment
Please, Sign In to add comment