Changeset 448 for branches


Ignore:
Timestamp:
Dec 14, 2013 12:24:59 AM (10 years ago)
Author:
anonymous
Message:

Fixed minor errors in phpunit tests. Also, I forgot to mention in the previous commit I re-enabled sessions in the codebase.

Location:
branches/eli_branch/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eli_branch/tests/AuthSQLTest.php

    r447 r448  
    207207    {
    208208        $result = $this->Auth_SQL->generatepassword('xCVcvd');
    209         $this->assertRegExp('/[bcdfghjklmnprstvwxzBCDFGHJKLMNPRSTVWXZaeiouyAEIOUY0123456789][bcdfghjklmnprstvwxzBCDFGHJKLMNPRSTVWXZ][aeiouyAEIOUY][bcdfghjklmnprstvwxz][aeiouy][0123456789]/', $result, 'Generated password does not match intended pattern');
     209        $this->assertRegExp('/[bcdfghjklmnprstvwxzBCDFGHJKLMNPRSTVWXZaeiouyAEIOUY0123456789!@#%&*-=+.?][bcdfghjklmnprstvwxzBCDFGHJKLMNPRSTVWXZ][aeiouyAEIOUY][bcdfghjklmnprstvwxz][aeiouy][0123456789]/', $result, 'Generated password does not match intended pattern');
    210210    }
    211211
  • branches/eli_branch/tests/DBSessionHandlerTest.php

    r447 r448  
    6868    function test_DBsessionwrite()
    6969    {
     70        if (!isset($_SESSION)) {
     71            $_SESSION = array();
     72        }
    7073        $this->DBSessionHandler->DBsessionwrite(session_id(), serialize($_SESSION));
    7174    }
  • branches/eli_branch/tests/run_tests.sh

    r446 r448  
    3131# Config options go in phpunit.xml
    3232# phpunit --tap | grep -v '^ok '
    33 phpunit
     33phpunit --stderr
Note: See TracChangeset for help on using the changeset viewer.