Advertisement
Guest User

Untitled

a guest
Dec 25th, 2010
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <?php
  2.  
  3. use Doctrine\ORM\Tools\SchemaTool;
  4. use Doctrine\Common\ClassLoader;
  5.  
  6. // Define path to application directory
  7. defined('APPLICATION_PATH')
  8.     || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
  9.  
  10. // Define application environment
  11. define('APPLICATION_ENV', 'testing');
  12.  
  13. // Ensure library/ is on include_path
  14. set_include_path(implode(PATH_SEPARATOR, array(
  15.   realpath(APPLICATION_PATH),
  16.   realpath(APPLICATION_PATH . '/../library'),
  17.   get_include_path(),
  18. )));
  19.  
  20. /** Zend_Application */
  21. require_once 'Zend/Application.php';
  22.  
  23. // Create application, bootstrap, and run
  24. $application = new Zend_Application(
  25.     APPLICATION_ENV,
  26.     APPLICATION_PATH . '/configs/application.ini'
  27. );
  28. $application->bootstrap();
  29.  
  30. $zendAutoloader = Zend_Loader_Autoloader::getInstance();
  31.  
  32. require_once __DIR__ . '/controllerTestCase.php';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement