diff options
author | Marcus Boerger <helly@php.net> | 2005-03-04 01:29:27 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-03-04 01:29:27 +0000 |
commit | f76f510185d7d62de0cd1a6979b15d98676ddecf (patch) | |
tree | 1a88356543b86a8c07958cd83cf8f88f81376ef0 /ext/pdo_sqlite | |
parent | 5ce920f1894dd9f3244c1ad35ab9b181f09c80d6 (diff) | |
download | php-git-f76f510185d7d62de0cd1a6979b15d98676ddecf.tar.gz |
- Add tests
- Fix testname
- Drop unnecessary include line (was wrong anyway)
Diffstat (limited to 'ext/pdo_sqlite')
-rwxr-xr-x | ext/pdo_sqlite/tests/pdo_015.phpt | 1 | ||||
-rwxr-xr-x | ext/pdo_sqlite/tests/pdo_016.phpt | 117 |
2 files changed, 117 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/tests/pdo_015.phpt b/ext/pdo_sqlite/tests/pdo_015.phpt index 38307a5cf9..ee36991027 100755 --- a/ext/pdo_sqlite/tests/pdo_015.phpt +++ b/ext/pdo_sqlite/tests/pdo_015.phpt @@ -10,7 +10,6 @@ require_once('skipif.inc'); require_once('connection.inc'); require_once('prepare.inc'); -require_once(dirname(__FILE__).'/../../pdo/tests/pdo.inc'); require_once($PDO_TESTS . 'pdo_015.inc'); ?> diff --git a/ext/pdo_sqlite/tests/pdo_016.phpt b/ext/pdo_sqlite/tests/pdo_016.phpt new file mode 100755 index 0000000000..f23ef08152 --- /dev/null +++ b/ext/pdo_sqlite/tests/pdo_016.phpt @@ -0,0 +1,117 @@ +--TEST-- +PDO_SQLite: PDO_FETCH_BOUND +--SKIPIF-- +<?php # vim:ft=php +require_once('skipif.inc'); +?> +--FILE-- +<?php + +require_once('connection.inc'); +require_once('prepare.inc'); + +require_once($PDO_TESTS . 'pdo_016.inc'); + +?> +===DONE=== +<?php exit(0); ?> +--EXPECTF-- +===INIT=== +int(1) +int(1) +int(1) +string(1) "3" +array(3) { + [0]=> + string(7) "String0" + [1]=> + string(7) "String1" + [2]=> + string(7) "String2" +} +===WHILE=== +array(1) { + [0]=> + string(7) "String0" +} +array(1) { + [1]=> + string(7) "String1" +} +array(1) { + [2]=> + string(7) "String2" +} +===ALONE=== +array(1) { + [0]=> + string(7) "String0" +} +bool(true) +bool(true) +bool(true) +bool(true) +array(1) { + [0]=> + string(7) "String0" +} +array(1) { + [1]=> + string(7) "String1" +} +bool(true) +bool(true) +bool(true) +bool(true) +array(1) { + [1]=> + string(7) "String1" +} +array(1) { + [2]=> + string(7) "String2" +} +bool(true) +bool(true) +bool(true) +bool(true) +array(1) { + [2]=> + string(7) "String2" +} +===REBIND/SAME=== +array(1) { + [0]=> + string(7) "String0" +} +bool(true) +bool(true) +string(7) "String0" +bool(true) +bool(true) +string(1) "0" +array(1) { + [1]=> + string(7) "String1" +} +bool(true) +bool(true) +string(7) "String1" +bool(true) +bool(true) +string(1) "1" +array(1) { + [2]=> + string(7) "String2" +} +bool(true) +bool(true) +string(7) "String2" +bool(true) +bool(true) +string(1) "2" +===REBIND/CONFLICT=== +string(7) "String0" +string(7) "String1" +string(7) "String2" +===DONE=== |