Changeset 154 for trunk/tests


Ignore:
Timestamp:
Jun 8, 2006 5:36:10 AM (18 years ago)
Author:
scdev
Message:

${1}

Location:
trunk/tests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/AppTest.php

    r136 r154  
    8383        $expected = 'My message';
    8484        $app->raiseMsg($expected, MSG_NOTICE, __FILE__, __LINE__);
    85         $msg = current($_SESSION[$this->App->_ns]['messages']);
     85        $msg = current($_SESSION['_app'][$this->App->_ns]['messages']);
    8686        $this->assertEquals($expected, $msg['message']);
    8787    }
  • trunk/tests/Auth_FileTest.php

    r149 r154  
    4545        $result = $this->Auth_File->login('testuser', 'testpass');
    4646        $this->assertTrue($result, 'testuser login failed.');
    47         $this->assertTrue($_SESSION[$this->Auth_File->_ns]['authenticated'], 'testuser authentication not found in session.');
     47        $this->assertTrue($_SESSION['_auth_file'][$this->Auth_File->_ns]['authenticated'], 'testuser authentication not found in session.');
    4848    }
    4949
     
    5252        $result = $this->Auth_File->login('testuser', 'testpass');
    5353        $this->Auth_File->clear();
    54         $this->assertFalse($_SESSION[$this->Auth_File->_ns]['authenticated'], 'testuser authentication not false in session.');
     54        $this->assertFalse($_SESSION['_auth_file'][$this->Auth_File->_ns]['authenticated'], 'testuser authentication not false in session.');
    5555    }
    5656
  • trunk/tests/Auth_SQLTest.php

    r149 r154  
    7070    {
    7171        $this->Auth_SQL->set('testuserkey', 'testuserval');
    72         $this->assertEquals('testuserval', $_SESSION[$this->Auth_SQL->_ns]['user_data']['testuserkey']);
     72        $this->assertEquals('testuserval', $_SESSION['_auth_sql'][$this->Auth_SQL->_ns]['user_data']['testuserkey']);
    7373    }
    7474
    7575    function test_get()
    7676    {
    77         $_SESSION[$this->Auth_SQL->_ns]['user_data']['testuserkey'] = 'testuserval';
     77        $_SESSION['_auth_sql'][$this->Auth_SQL->_ns]['user_data']['testuserkey'] = 'testuserval';
    7878        $val = $this->Auth_SQL->get('testuserkey');
    7979        $this->assertEquals('testuserval', $val);
  • trunk/tests/EmailTest.php

    r42 r154  
    9494        $this->assertEquals(41, $gc, 'Unexpected good count.');
    9595        $this->assertEquals(47, $bc, 'Unexpected bad count.');
    96         echo "Good addresses: $gc\n";
    97         echo "Bad addresses: $bc\n";
     96        // echo "Good addresses: $gc\n";
     97        // echo "Bad addresses: $bc\n";
    9898//         echo join("\n", $bad);
    9999//         echo "\n";
Note: See TracChangeset for help on using the changeset viewer.