summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-02-23 01:13:13 +0000
committerMarcus Boerger <helly@php.net>2005-02-23 01:13:13 +0000
commit3f1738f96da9c66ae842ff39a88f0ea938e02ed3 (patch)
tree0deb8cabbbb41628a421fd112f8d2b2fdba7b113 /ext/pdo_sqlite
parent72c1baa9d8491ffa89095f109437be471b89dfa9 (diff)
downloadphp-git-3f1738f96da9c66ae842ff39a88f0ea938e02ed3.tar.gz
- Add new tests
Diffstat (limited to 'ext/pdo_sqlite')
-rwxr-xr-xext/pdo_sqlite/tests/pdo_sqlite_014.phpt58
1 files changed, 58 insertions, 0 deletions
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_014.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_014.phpt
new file mode 100755
index 0000000000..193019c948
--- /dev/null
+++ b/ext/pdo_sqlite/tests/pdo_sqlite_014.phpt
@@ -0,0 +1,58 @@
+--TEST--
+PDO_SQLite: PDOStatement and SPL Iterators
+--SKIPIF--
+<?php # vim:ft=php
+require_once('skipif.inc');
+if (!extension_loaded('SPL')) die('skip SPL not available');
+?>
+--FILE--
+<?php
+
+require_once('connection.inc');
+require_once('prepare.inc');
+
+require_once($PDO_TESTS . 'pdo_014.inc');
+
+?>
+===DONE===
+<?php exit(0); ?>
+--EXPECTF--
+Test::__construct(WOW)
+object(Test)#4 (2) {
+ ["val"]=>
+ string(1) "A"
+ ["grp"]=>
+ string(6) "Group1"
+}
+Test::__construct(WOW)
+object(Test)#6 (2) {
+ ["val"]=>
+ string(1) "B"
+ ["grp"]=>
+ string(6) "Group2"
+}
+NULL
+bool(false)
+PDOStatementAggregate::__construct
+PDOStatementAggregate::getIterator
+array(4) {
+ ["val"]=>
+ string(1) "A"
+ [0]=>
+ string(1) "A"
+ ["grp"]=>
+ string(6) "Group1"
+ [1]=>
+ string(6) "Group1"
+}
+array(4) {
+ ["val"]=>
+ string(1) "B"
+ [0]=>
+ string(1) "B"
+ ["grp"]=>
+ string(6) "Group2"
+ [1]=>
+ string(6) "Group2"
+}
+===DONE===