Starting unit tests for PHP-server ...
These automated tests overwrite and REMOVE two users named eUser and dUser

-- Test results --

>> Test user actions...

Test new empty user
- ok
Test new blank user
- ok
Test new user, format not accepted
- ok
Test new user, blank password
- ok
user, wrong password
- ok
user, password ok
- ok
user login accepted
- ok
user login not accepted
- ok
user name for login not accepted
- ok
Change password but wrong old password
- ok
Change password
- ok
Remove not existing user
- ok
Remove existing user
- ok
Is eUser the admin?
- ok
Is admin the admin?
- ok
Is AdMin the admin?
- ok

>> Tests guess time stamp formats...

time=1364225224111
- ok
time=1364225189643
- ok
time=2013-03-25_14:43:01
- ok
time=2013-03-25_14:43:01Z+01
- ok
time=2013-03-25_14:43
- ok

>> Tests find date-time in csv lines...

tIme=2013-03-25T15:27:04Z
- ok
xytIme=2013-03-25T15:27:04Z;xy
- ok
xy;tIme=2013-03-25T15:27:04Z;xy;xy
- ok
xy;nothing=2013-03-25T15:27:04Z;xy;xy
- ok

>> Tests writing of group file...

Prepare: Create new user
- ok
New group for user
- ok
Same group for user
- ok
Changed group for user
- ok
Cleanup this test method: Remove existing user
- ok

>> Tests writing of single position...

Prepare: Create new user
- ok
Check parameter lat
- ok
Check parameter lon
- ok
Prepare: Create new user
- ok
Get tracks (individually 1) for user (no positions yet)
- ok
Get tracks (individually 2) for user (no positions yet)
- ok
Get tracks (individually 3) for user (no positions yet)
- ok
Test helper function to write the postion.csv > new
- ok
Write single position
- ok
Write lat and lon
- ok
Get tracks (individually 1) for user (one position yet) no track for today
- ok
Get tracks (individually 2) for user (one position yet) - track excluded because of time
- ok
Write lat and lon
- ok
Check for a data file (gpx) for this user
- ok
View single position
- ok
View single position (parameter = getGroupPostions
- ok
Write lat and lon
- ok
Get tracks individually for user (omit tracks)
- ok
Get tracks individually for user (omit tracks)
- ok
Get tracks individually for user (two positions yet no last time given)
- ok
View single position
- ok
Write empty multiline positions
- ok
Write multiline positions
- ok
View single position set by multiline writing
- ok
Get tracks individally for user (five positions yet, last time given)
- ok
List tracks
- ok
List tracks
- ok
Get track check empty parameter date
- ok
Get track
- ok
Get track after a certain line number only
- ok
Get track after a certain line number (at end already)
- ok
Get postions of group
- ok
Prepare: Create new user
- ok
Check for a data file (gpx) for this user. A second user is in the group but without this file.
- ok
Prepare: Write position new second user with same group
- ok
Check for a data file (gpx) for this user. A second user is in the group now.
- ok
Get postions of the two members of the group
- ok
Get tracks individually for 2 users (last time given - 1)
- ok
Get tracks individually for 2 users (last line given - 2)
- ok
Get tracks individually for 2 users (last line given - 3)
- ok
Get tracks individually for 2 users (last line given - 4)
- ok
Get tracks individually for 2 users (last line given - 5)
- ok
Get postions of the two members of the group (param = getGroupPostions
- ok
Util: write some csv files to create gpx (later)
- ok
Create gpx from csv and list. Check eUser
- ok
Create gpx from csv and list. Check dUser
- ok
Write multiline positions with different dates
- ok
Get tracks individually for 2 users all lines
- ok
Get tracks individually for 2 users all lines
- ok
List tracks
- ok
- ok
- ok
- ok
Write multiline positions with different dates and track not stored
- ok
Get tracks individually for 2 users all lines
- ok

>> Tests with timezone offset...

time=nowknown, offset=''
- ok
time=2013-03-25_14:43:01Z+01, offset=''
- ok
time=2013-03-25_14:43:01Z+01, offset='', date only
- ok
time=2013-03-25_14:43:01Z+01, offset='-120'
- ok
time=2013-03-25_14:43:01Z+01, offset='120'
- ok
time=2013-03-25_14:43:01Z+01, offset='not_a_number'
- ok
time=2013-03-25_14:43:01Z+01, offset='0'
- ok
time=1364225224111, offset='-120'
- ok

>> Tests writing of config file...

No config: User = admin, key = timezone_offset_minutes
- ok
No config: User = cUser, key = timezone_offset_minutes
- ok
Delete missing config file: User = cUser
- ok
Delete missing config file: User = admin
- ok
Set config: User = admin, , key = timezone_offset_minutes (set server)
- ok
Get config: User = admin, key = timezone_offset_minutes
- ok
Get config: User = cUser, key = timezone_offset_minutes
- ok
Get config: User = cUser, key = timezone_offset_minutes
- ok
Set config: User = dUser, key = track_expiration_days (set user and server)
- ok
Get config: User = admin, key = timezone_offset_minutes
- ok
Get config: User = admin, key = track_expiration_days
- ok
Get config: User = dUser, key = timezone_offset_minutes
- ok
Get config: User = dUser, key = track_expiration_days
- ok
Set config: User = admin, , key = track_expiration_days (set server only)
- ok
Set config: User = dUser, , key = track_expiration_days (set user only)
- ok
Get config: User = admin, key = timezone_offset_minutes
- ok
Get config: User = admin, key = track_expiration_days
- ok
Get config: User = dUser, key = timezone_offset_minutes
- ok
Get config: User = dUser, key = track_expiration_days
- ok
Set config en bloc: User = dUser, track_expiration_days=0, timezone_offset_minutes=-60
- ok
Get config: User = dUser, key = track_expiration_days = 0
- ok
Get config: User = dUser, key = timezone_offset_minutes = -60
- ok
User dir 'eUser' is there after clean up for 'eUser' that has an expiration time of 15 days
- ok
User dir 'dUser' was removed by the clean up for 'dUser' that has an expiration time of 0 days.
- ok
Remove test users
- ok