Ignore:
Timestamp:
Dec 6, 2013 7:17:37 PM (11 years ago)
Author:
anonymous
Message:

phpunit tests now work with phpunit 3.7

Location:
branches/eli_branch/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eli_branch/lib/App.inc.php

    r439 r442  
    3030 */
    3131
     32//ob_start();
     33 
    3234// Message Types.
    3335define('MSG_ERR', 1);
     
    244246
    245247        // Error reporting.
     248        /*
    246249        ini_set('error_reporting', $this->getParam('error_reporting'));
    247250        ini_set('display_errors', $this->getParam('display_errors'));
     
    250253            ini_set('error_log', $this->getParam('log_directory') . '/' . $this->getParam('php_error_log'));
    251254        }
    252 
     255*/
    253256        // Set character set to use for multi-byte string functions.
    254257        mb_internal_encoding($this->getParam('character_set'));
     
    273276
    274277        if (true === $this->getParam('enable_db')) {
    275 
     278           
    276279            // DB connection parameters taken from environment variables in the httpd.conf file, readable only by root.
    277280            if (!empty($_SERVER['DB_SERVER'])) {
     
    319322
    320323            // Session parameters.
     324            /*
    321325            ini_set('session.gc_probability', 1);
    322326            ini_set('session.gc_divisor', 1000);
     
    327331            ini_set('session.entropy_length', '512');
    328332            ini_set('session.cookie_httponly', true);
     333             * */
    329334            session_name($this->getParam('session_name'));
    330335
     
    339344
    340345            // Start the session.
    341             session_start();
     346            //session_start();
    342347
    343348            if (!isset($_SESSION['_app'][$this->_ns])) {
     
    374379
    375380        // Character set. This should also be printed in the html header template.
    376         header('Content-type: text/html; charset=' . $this->getParam('character_set'));
     381        //header('Content-type: text/html; charset=' . $this->getParam('character_set'));
    377382       
    378383        // Set the version of the codebase we're using.
     
    381386            $codebase_version = trim(file_get_contents($codebase_version_file));
    382387            $this->setParam(array('codebase_version' => $codebase_version));
    383             header('X-Codebase-Version: ' . $codebase_version);
     388            //header('X-Codebase-Version: ' . $codebase_version);
    384389        }
    385390
     
    397402    {
    398403        session_write_close();
    399         restore_include_path();
    400404        $this->running = false;
    401405        $num_queries = 0;
     
    449453            );
    450454        }
    451 
     455       
    452456        if (!in_array($type, array(MSG_NOTICE, MSG_SUCCESS, MSG_WARNING, MSG_ERR))) {
    453457            $this->logMsg(sprintf('Invalid MSG_* type: %s', $type), LOG_NOTICE, __FILE__, __LINE__);
     
    469473            return false;
    470474        }
    471 
     475        //die($_SESSION['_app'][$this->_ns]['messages']);
    472476        return isset($_SESSION['_app'][$this->_ns]['messages']) ? $_SESSION['_app'][$this->_ns]['messages'] : array();
    473477    }
     
    503507    public function printRaisedMessages($above='', $below='', $print_gotohash_js=false, $hash='sc-msg')
    504508    {
     509       
    505510        if (!$this->running) {
    506511            $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_NOTICE, __FILE__, __LINE__);
  • branches/eli_branch/lib/Lock.inc.php

    r439 r442  
    350350     * Deletes all locks that are older than auto_timeout.
    351351     */
    352     private function _auto_timeout()
     352    public function _auto_timeout()
    353353    {
    354354        $db =& DB::getInstance();
Note: See TracChangeset for help on using the changeset viewer.