Пример #1
0
 static function setUp()
 {
     set_include_path(implode(PATH_SEPARATOR, array(realpath(dirname(__FILE__) . '/../application'), realpath(dirname(__FILE__) . '/../library'), get_include_path())));
     require_once realpath(dirname(__FILE__) . '/../application/Bootstrap.php');
     require_once 'Zend/Loader/Autoloader.php';
     Zend_Loader_Autoloader::getInstance();
     self::$bootstrap = new Bootstrap(getenv('APPLICATION_ENV'));
     Zend_Session::$_unitTestEnabled = true;
     Zend_Loader::loadClass('Sql');
     $sql = new Sql();
     $sql->reset();
 }