Changeset 136 for trunk/tests/Auth_FileTest.php
- Timestamp:
- Jun 3, 2006 7:47:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Auth_FileTest.php
r42 r136 23 23 require dirname(__FILE__) . '/_config.inc.php'; 24 24 require_once '../lib/Auth_File.inc.php'; 25 $this->Auth_File =& new Auth_File(array('htpasswd_file' => dirname(__FILE__) . '/_test_htpasswd')); 25 $this->Auth_File =& new Auth_File('test_auth'); 26 $this->Auth_File->setParam(array('htpasswd_file' => dirname(__FILE__) . '/_test_htpasswd')); 26 27 } 27 28 … … 44 45 $result = $this->Auth_File->login('testuser', 'testpass'); 45 46 $this->assertTrue($result, 'testuser login failed.'); 46 $this->assertTrue($_SESSION[ '_auth']['authenticated'], 'testuser authentication not found in session.');47 $this->assertTrue($_SESSION[$this->Auth_File->_ns]['authenticated'], 'testuser authentication not found in session.'); 47 48 } 48 49 … … 51 52 $result = $this->Auth_File->login('testuser', 'testpass'); 52 53 $this->Auth_File->clearauth(); 53 $this->assertFalse($_SESSION[ '_auth']['authenticated'], 'testuser authentication not false in session.');54 $this->assertFalse($_SESSION[$this->Auth_File->_ns]['authenticated'], 'testuser authentication not false in session.'); 54 55 } 55 56
Note: See TracChangeset
for help on using the changeset viewer.