Lines Matching defs:res

16     protected $res;
48 $res = $SqliteHelper->query($sql);
49 $this->res = $res;
62 $res = $SqliteHelper->query($sql);
63 $this->res = $res;
150 $this->assertNotEquals(false, $this->res);
153 $SqliteHelper->res_close($this->res);
168 $this->assertEquals($resultassoc, $SqliteHelper->res2arr($this->res, $assoc = true));
184 $this->assertEquals($resultnum, $SqliteHelper->res2arr($this->res, $assoc = false));
195 $this->assertEquals($result0, $SqliteHelper->res2row($this->res));
196 $SqliteHelper->res2row($this->res); // skip one row
197 $this->assertEquals($result2, $SqliteHelper->res2row($this->res));
200 $SqliteHelper->res_close($this->res);
211 $this->assertEquals($result1, $SqliteHelper->res2single($this->res));
212 $this->assertEquals($result2, $SqliteHelper->res2single($this->res)); //next row
215 $SqliteHelper->res_close($this->res);
226 $this->assertEquals($result0, $SqliteHelper->res_fetch_array($this->res));
227 $this->assertEquals($result1, $SqliteHelper->res_fetch_array($this->res)); //next row
230 $SqliteHelper->res_close($this->res);
241 $this->assertEquals($result0, $SqliteHelper->res_fetch_assoc($this->res));
242 $this->assertEquals($result1, $SqliteHelper->res_fetch_assoc($this->res)); //next row
245 $SqliteHelper->res_close($this->res);
255 $this->assertEquals($result, $SqliteHelper->res2count($this->res));
263 $this->assertEquals(1, $SqliteHelper->countChanges($this->res), 'Insert result');
270 $res = $SqliteHelper->query('SELECT * FROM testdata');
271 $this->assertNotFalse($res);
272 $SqliteHelper->res_close($res);
276 $res = $obj->query('SELECT * FROM testdata');
277 $this->assertNotFalse($res);
278 $obj->res_close($res);