/** * @depends testInsert */ function testUpdate() { $c = new \HandlerSocket\WriteSocket(); $c->connect('localhost', 9999); $id = $c->getIndexId($this->db, 'write1', '', 'k,v'); $c->update($id, '=', array(100500), array(100500, 42)); $response = $c->readResponse(); if ($response instanceof \HandlerSocket\ErrorMessage) { throw $response; } $this->assertEquals(array(array(1)), $response); }