Advertisement
mOrloff

tests/application/controllers/IndexControllerTest.php

Jun 20th, 2011
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2.  
  3. class IndexControllerTest extends Zend_Test_PHPUnit_ControllerTestCase
  4. {
  5.  
  6.     public function setUp()
  7.     {
  8.         $this->bootstrap = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
  9.         parent::setUp();
  10.     }
  11.  
  12.     public function displaysamplearrayAction()
  13.     {
  14.         $fruitsalad = array('apples','oranges','kiwi','mango','grapes','strawberries');  // no bananas
  15.         $this->render($fruitsalad);
  16.     }
  17.  
  18.     public function displayuserAction()
  19.     {
  20.         $user = '<h2>User: Bob Jones</h2>';
  21.         $user.= '<ul><li>Age: 28</li><li>Gender: Male</li></ul>'
  22.         $this->render($user);
  23.     }
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement