1..47
# ->initialize()
ok 1 # TODO ->initialize() times out the user if no request made for a long time
# ->getCredentials()
ok 2 - ->getCredentials() returns user credentials as an array
# ->setAuthenticated() ->isAuthenticated()
ok 3 - ->isAuthenticated() returns false by default
ok 4 - ->isAuthenticated() returns true if the user is authenticated
ok 5 - ->setAuthenticated() accepts a boolean as its first parameter
ok 6 - ->setAuthenticated() regenerates the session id if the authentication changes
ok 7 - ->setAuthenticated() does not regenerate the session id if the authentication does not change
ok 8 - ->addCredential() regenerates the session id if a new credential is added
ok 9 - ->addCredential() does not regenerate the session id if the credential already exists
ok 10 - ->removeCredential() regenerates the session id if a credential is removed
ok 11 - ->removeCredential() does not regenerate the session id if the credential does not exist
# ->setTimedOut() ->isTimedOut()
ok 12 - ->isTimedOut() returns false if the session is not timed out
ok 13 - ->isTimedOut() returns true if the session is timed out
# ->hasCredential()
ok 14 - ->hasCredential() returns false if user has not the credential
ok 15 - ->addCredential() takes a credential as its first argument
ok 16 - ->hasCredential() can takes an array of credential as a parameter
ok 17 - ->hasCredential() can takes an array of credential as a parameter
ok 18 - ->hasCredential() can takes an array of credential as a parameter
ok 19 - ->hasCredential() can takes an array of credential as a parameter
ok 20 - ->hasCredential() can takes an array of credential as a parameter
ok 21 - ->hasCredential() can takes an array of credential as a parameter
ok 22 - ->hasCredential() can takes an array of credential as a parameter
ok 23 - ->hasCredential() can takes an array of credential as a parameter
ok 24 - ->hasCredential() can takes an array of credential as a parameter
ok 25 - ->hasCredential() can takes an array of credential as a parameter
ok 26 - ->hasCredential() can takes an array of credential as a parameter
ok 27 - ->hasCredential() can takes an array of credential as a parameter
ok 28 - ->hasCredential() can takes an array of credential as a parameter
ok 29 - ->hasCredential() can takes an array of credential as a parameter
ok 30 - ->hasCredential() can takes an array of credential as a parameter
ok 31
ok 32
ok 33
ok 34
ok 35
ok 36
ok 37
ok 38
ok 39 - ->hasCrendential() supports numerical credentials
ok 40 - ->hasCrendential() supports numerical credentials
ok 41 - ->hasCrendential() supports numerical credentials
ok 42 - ->hasCrendential() supports numerical credentials
# ->removeCredential()
ok 43
# ->clearCredentials()
ok 44
ok 45
ok 46 - ->initialize() times out the user if no request made for a long time
ok 47 - ->initialize() takes a timeout parameter which can be false to disable session timeout
# Looks like everything went fine.