Advertisement
Guest User

PHPUnit Zend Framework

a guest
Oct 15th, 2010
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. // start output buffering
  4. ob_start();
  5.  
  6. // Define path to application directory
  7. define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
  8.  
  9. /** Zend_Application */
  10. require_once 'Zend/Application.php';
  11.  
  12. //put whatever your $_SERVER vars your app may need here:
  13. $_SERVER['HTTP_HOST'] = 'x.com';
  14. $_SERVER['HTTP_USER_AGENT'] = 'phpunit';
  15. $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
  16. require_once 'ControllerTestCase.php';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement