Changeset 15 for trunk/tests


Ignore:
Timestamp:
Nov 13, 2005 4:51:22 AM (18 years ago)
Author:
scdev
Message:

M trunk/tests/run_tests.sh
Now can run tests without being in tests dir.

M trunk/tests/_config.inc.php
No change

M trunk/tests/Auth_SQLTest.php
...

M trunk/lib/RecordVersion.inc.php
Removed debugging.

M trunk/lib/DB.inc.php
Added die on connect error only if db_die_on_failure is true.

M trunk/lib/DBSessionHandler.inc.php
Added more accurate error-checking.

M trunk/lib/FormValidator.inc.php
Fixed email regex bugs.

M trunk/lib/SpellCheck.inc.php
Integrated lots of bug fixes from UK update.

M trunk/lib/Auth_SQL.inc.php
Lots of minor bug fixes.

M trunk/lib/App.inc.php
A couple minor bug fixes.

Location:
trunk/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/Auth_SQLTest.php

    r14 r15  
    106106        $true = $this->Auth_SQL->authenticate('testuser', 'testpass');
    107107        $this->assertTrue($true, 'User login failed, but should have succeeded.');
     108
     109        echo "Testing wrong password...\n";
    108110        $false = $this->Auth_SQL->authenticate('testuser', 'wrongpass');
     111
    109112        $this->assertfalse($false, 'User login succeeded, but should have failed.');
    110113    }
     
    120123        $this->assertFalse($after_logged_in, '3. User is still logged in but should not be.');
    121124
     125        echo "Testing wrong password...\n";
    122126        $login2 = $this->Auth_SQL->login('testuser', 'wrongpass');
    123127        $this->assertFalse($login2, '4. User login succeeded, but should have failed.');
  • trunk/tests/_config.inc.php

    r14 r15  
    1919    'db_name' => 'test',
    2020    'db_user' => 'root',
    21     'db_pass' => getenv('DB_PASS'),       
     21    'db_pass' => getenv('DB_PASS'),
    2222    'display_errors' => true,
    2323    'db_always_debug' => false, // TRUE = display all SQL queries.
     
    3232
    3333$app->start();
    34 
    3534?>
  • trunk/tests/run_tests.sh

    r14 r15  
    11#!/bin/sh
    2 for foo in `dirname $0`/*Test.php;
     2
     3# Be in the directory with all the tests.
     4cd `dirname $0`;
     5
     6# Run tests sequentially.
     7for foo in *Test.php;
    38do
    49    php $foo;
Note: See TracChangeset for help on using the changeset viewer.