function testCurrent() { $this->assertFalse(UIDGenerator :: current()); UIDGenerator :: next(); UIDGenerator :: next(); UIDGenerator :: next(); $this->assertEqual(UIDGenerator :: current(), 3); }
function nextUID() { include_once(LIMB_DIR . '/core/orm/UIDGenerator.class.php'); return UIDGenerator :: next(); }