Script to test the SyncML implementation.
Takes a pre-recorded testcase, stuffs the data into the SyncML server, and then compares the output to see if it matches.
See http://wiki.horde.org/SyncHowTo for a description how to create a test case.
$$Horde: framework/SyncML/tests/testsync.php,v 1.14.2.8 2009/01/06 15:23:39 jan Exp $
Copyright 2006-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Script to test the SyncML implementation.
Takes a pre-recorded testcase, stuffs the data into the SyncML server, and then compares the output to see if it matches.
See http://wiki.horde.org/SyncHowTo for a description how to create a test case.
$$Horde: framework/SyncML/tests/testsync.php,v 1.14.2.8 2009/01/06 15:23:39 jan Exp $
Copyright 2006-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Compares $r and $ref.
Exits if any nontrivial differences are found.
Retrieves the client data to be sent to the server
Simulates a call to the SyncML server by sending data to the server.
Returns the result received from the server.
Retrieves the reference data for one packet.
Parses and stores the map info sent by the client.
We can't know in which ordeer changes (Add|Replace|Delete) changes are
reported by the backend. One time it may list change1 and then change2, another time first change2 and then change1. So we just sort them to get a comparable result. The LocURIs must be ignored for the sort as we fake them during the test.
Executes one test case.
A test cases consists of various pre-recorded .xml packets in directory $name.
When a test case contains adds/modifies/deletes being sent to the server,
these changes must be extracted from the test data and manually performed using the api to achieve the desired behaviour by the server
Tests one sync session.
Returns true on successful test and false on no (more) test data available for this $startnumber. Exits if test fails.
Documentation generated on Sun, 30 Jan 2011 05:22:50 +0000 by phpDocumentor 1.4.3