Changeset 154 for trunk/tests
- Timestamp:
- Jun 8, 2006 5:36:10 AM (18 years ago)
- Location:
- trunk/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/AppTest.php
r136 r154 83 83 $expected = 'My message'; 84 84 $app->raiseMsg($expected, MSG_NOTICE, __FILE__, __LINE__); 85 $msg = current($_SESSION[ $this->App->_ns]['messages']);85 $msg = current($_SESSION['_app'][$this->App->_ns]['messages']); 86 86 $this->assertEquals($expected, $msg['message']); 87 87 } -
trunk/tests/Auth_FileTest.php
r149 r154 45 45 $result = $this->Auth_File->login('testuser', 'testpass'); 46 46 $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.'); 48 48 } 49 49 … … 52 52 $result = $this->Auth_File->login('testuser', 'testpass'); 53 53 $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.'); 55 55 } 56 56 -
trunk/tests/Auth_SQLTest.php
r149 r154 70 70 { 71 71 $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']); 73 73 } 74 74 75 75 function test_get() 76 76 { 77 $_SESSION[ $this->Auth_SQL->_ns]['user_data']['testuserkey'] = 'testuserval';77 $_SESSION['_auth_sql'][$this->Auth_SQL->_ns]['user_data']['testuserkey'] = 'testuserval'; 78 78 $val = $this->Auth_SQL->get('testuserkey'); 79 79 $this->assertEquals('testuserval', $val); -
trunk/tests/EmailTest.php
r42 r154 94 94 $this->assertEquals(41, $gc, 'Unexpected good count.'); 95 95 $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"; 98 98 // echo join("\n", $bad); 99 99 // echo "\n";
Note: See TracChangeset
for help on using the changeset viewer.