Ignore:
Timestamp:
Dec 11, 2013 6:09:07 PM (11 years ago)
Author:
anonymous
Message:

Wrapper script for phpunit. Changed logMsg SCREEN action to print to stderr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eli_branch/tests/AuthSQLTest.php

    r442 r446  
    44 * For details visit the project site: <http://trac.strangecode.com/codebase/>
    55 * Copyright 2001-2012 Strangecode, LLC
    6  * 
     6 *
    77 * This file is part of The Strangecode Codebase.
    88 *
     
    1111 * Free Software Foundation, either version 3 of the License, or (at your option)
    1212 * any later version.
    13  * 
     13 *
    1414 * The Strangecode Codebase is distributed in the hope that it will be useful, but
    1515 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1616 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    1717 * details.
    18  * 
     18 *
    1919 * You should have received a copy of the GNU General Public License along with
    2020 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
     
    3333
    3434    var $Auth_SQL;
    35    
     35
    3636    static $shared_session;
    37    
     37
    3838    function setUp()
    3939    {
     
    7676    {
    7777        $db =& DB::getInstance();
    78    
     78
    7979        unset($this->Auth_SQL);
    8080        $db->query("DROP TABLE IF EXISTS test_user_tbl");
     
    145145        $after_logged_in = $this->Auth_SQL->isloggedin();
    146146        $this->assertFalse($after_logged_in, '3. User is still logged in but should not be.');
    147        
     147
    148148        // Testing wrong password.
    149149        $login2 = $this->Auth_SQL->login('testuser', 'wrongpass');
     
    164164    {
    165165        $db =& DB::getInstance();
    166    
     166
    167167        $this->Auth_SQL->login('testuser', 'testpass');
    168168        $this->Auth_SQL->blockaccount(null, 'blocktestuser');
     
    178178    {
    179179        $db =& DB::getInstance();
    180    
     180
    181181        $db->query("
    182182            UPDATE test_user_tbl SET blocked_reason = 'blocktestuser'
     
    240240    {
    241241        $db =& DB::getInstance();
    242    
     242
    243243        $this->Auth_SQL->setParam(array('encryption_type' => AUTH_ENCRYPT_SHA1_HARDENED));
    244244        $this->Auth_SQL->setpassword(null, '123');
     
    255255        $result = $this->Auth_SQL->resetpassword(1, 'Because this is a test.');
    256256        $this->assertInternalType('array', $result);
    257        
     257
    258258    }
    259259
Note: See TracChangeset for help on using the changeset viewer.