Changeset 15 for trunk/tests
- Timestamp:
- Nov 13, 2005 4:51:22 AM (18 years ago)
- Location:
- trunk/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Auth_SQLTest.php
r14 r15 106 106 $true = $this->Auth_SQL->authenticate('testuser', 'testpass'); 107 107 $this->assertTrue($true, 'User login failed, but should have succeeded.'); 108 109 echo "Testing wrong password...\n"; 108 110 $false = $this->Auth_SQL->authenticate('testuser', 'wrongpass'); 111 109 112 $this->assertfalse($false, 'User login succeeded, but should have failed.'); 110 113 } … … 120 123 $this->assertFalse($after_logged_in, '3. User is still logged in but should not be.'); 121 124 125 echo "Testing wrong password...\n"; 122 126 $login2 = $this->Auth_SQL->login('testuser', 'wrongpass'); 123 127 $this->assertFalse($login2, '4. User login succeeded, but should have failed.'); -
trunk/tests/_config.inc.php
r14 r15 19 19 'db_name' => 'test', 20 20 'db_user' => 'root', 21 'db_pass' => getenv('DB_PASS'), 21 'db_pass' => getenv('DB_PASS'), 22 22 'display_errors' => true, 23 23 'db_always_debug' => false, // TRUE = display all SQL queries. … … 32 32 33 33 $app->start(); 34 35 34 ?> -
trunk/tests/run_tests.sh
r14 r15 1 1 #!/bin/sh 2 for foo in `dirname $0`/*Test.php; 2 3 # Be in the directory with all the tests. 4 cd `dirname $0`; 5 6 # Run tests sequentially. 7 for foo in *Test.php; 3 8 do 4 9 php $foo;
Note: See TracChangeset
for help on using the changeset viewer.