diff options
author | Marcus Boerger <helly@php.net> | 2005-03-21 00:29:25 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-03-21 00:29:25 +0000 |
commit | a66e14645c986ef58e01298b3461eeddd8dc16ac (patch) | |
tree | de5723297b0f8b098620311c57d5c13a33875818 /ext/sqlite | |
parent | c9108bba25ca634df2c9c06b11639baf8c24f0df (diff) | |
download | php-git-a66e14645c986ef58e01298b3461eeddd8dc16ac.tar.gz |
- Add new tests
Diffstat (limited to 'ext/sqlite')
-rwxr-xr-x | ext/sqlite/tests/pdo/pdo_023.phpt | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/ext/sqlite/tests/pdo/pdo_023.phpt b/ext/sqlite/tests/pdo/pdo_023.phpt new file mode 100755 index 0000000000..1bdc853e8f --- /dev/null +++ b/ext/sqlite/tests/pdo/pdo_023.phpt @@ -0,0 +1,61 @@ +--TEST-- +PDO_SQLite2: Overloading +--SKIPIF-- +<?php # vim:ft=php +require_once('skipif.inc'); ?> +--FILE-- +<?php + +require_once('connection.inc'); +require_once('prepare.inc'); + +require_once($PDO_TESTS . 'pdo_023_def.inc'); + +$DB = NULL; + +$DB = new PDODatabaseX($CONNECTION); +$DB->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_WARNING); + +require_once($PDO_TESTS . 'pdo_023.inc'); + +?> +===DONE=== +<?php exit(0); ?> +--EXPECTF-- +PDODatabaseX::__construct() +int(1) +int(2) +object(PDODatabaseX)#%d (2) { + ["test1"]=> + int(1) + ["test2"]=> + int(22) +} +PDODatabaseX::query() +PDOStatementX::__construct() +PDOStatementX::__destruct() +PDODatabaseX::query() +PDOStatementX::__construct() +PDOStatementX::__destruct() +PDODatabaseX::query() +PDOStatementX::__construct() +PDOStatementX::__destruct() +PDODatabaseX::query() +PDOStatementX::__construct() +object(PDOStatementX)#%d (3) { + ["test1"]=> + int(1) + ["queryString"]=> + string(24) "SELECT val, id FROM test" + ["test2"]=> + int(22) +} +array(2) { + ["A"]=> + string(1) "0" + ["B"]=> + string(1) "1" +} +PDOStatementX::__destruct() +PDODatabaseX::__destruct() +===DONE=== |