File: 09numrows.phpt

package info (click to toggle)
php-db 1.7.14-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 984 kB
  • sloc: php: 6,933; pascal: 1,001; xml: 213; sh: 31; makefile: 13
file content (22 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
DB_driver::numRows
--INI--
error_reporting = 2047
--SKIPIF--
<?php require_once dirname(__FILE__) . '/skipif.inc'; ?>
--FILE--
<?php
require_once dirname(__FILE__) . '/mktable.inc';
require_once dirname(__FILE__) . '/../numrows.inc';
?>
--EXPECT--
(want 1) got 1 from first
(want 2) got 2 from 0
(want 3) got 3 from 1
(want 4) got 4 from 2
(want 5) got 5 from 3
(want 6) got 6 from 4
(want 5) got 5 from > 0 (passing params to query)
(want 4) got 4 from < 4 (doing prepare/execute)
(want 2) got 2 from 5 and 6 not deleted
(want 0) got 0 from < 0