Perform some sanity checking on the various timestamps to ensure we
are in a valid state. Basically checks that we are not currently running
a looping sync and that the last looping sync ending normally.
public validateTimestamps ( ) : boolean | ||
return | boolean |
public function testValidateTimestamps() { $cache = new Horde_ActiveSync_SyncCache($this->_state, 'devid', 'userone'); $this->assertEquals(true, $cache->validateTimestamps()); $cache->lasthbsyncstarted = time(); $this->assertEquals(false, $cache->validateTimestamps()); }