summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pdo/tests/pdo_028.phpt14
-rwxr-xr-xext/pdo/tests/pdo_029.phpt37
-rwxr-xr-xext/spl/tests/iterator_028.phpt58
3 files changed, 109 insertions, 0 deletions
diff --git a/ext/pdo/tests/pdo_028.phpt b/ext/pdo/tests/pdo_028.phpt
index 7d04dd96ed..01a52feb11 100644
--- a/ext/pdo/tests/pdo_028.phpt
+++ b/ext/pdo/tests/pdo_028.phpt
@@ -43,3 +43,17 @@ array(1) {
string(5) "three"
}
}
+--UEXPECT--
+array(1) {
+ [0]=>
+ array(4) {
+ [u"id"]=>
+ unicode(1) "1"
+ [u"val1"]=>
+ unicode(3) "one"
+ [u"val2"]=>
+ unicode(3) "two"
+ [u"val3"]=>
+ unicode(5) "three"
+ }
+}
diff --git a/ext/pdo/tests/pdo_029.phpt b/ext/pdo/tests/pdo_029.phpt
index c2663b1eee..13c7ef1352 100755
--- a/ext/pdo/tests/pdo_029.phpt
+++ b/ext/pdo/tests/pdo_029.phpt
@@ -123,3 +123,40 @@ array(3) {
===DONE===
PDODatabase::__destruct()
PDOStatementX::__destruct()
+--UEXPECT--
+unicode(11) "PDODatabase"
+unicode(12) "PDOStatement"
+===QUERY===
+PDODatabase::query()
+PDOStatementX::__construct()
+PDOStatementX::execute()
+unicode(13) "PDOStatementX"
+unicode(11) "PDODatabase"
+===FOREACH===
+array(3) {
+ [u"id"]=>
+ unicode(2) "10"
+ [u"val"]=>
+ unicode(3) "Abc"
+ [u"val2"]=>
+ unicode(3) "zxy"
+}
+array(3) {
+ [u"id"]=>
+ unicode(2) "20"
+ [u"val"]=>
+ unicode(3) "Def"
+ [u"val2"]=>
+ unicode(3) "wvu"
+}
+array(3) {
+ [u"id"]=>
+ unicode(2) "30"
+ [u"val"]=>
+ unicode(3) "Ghi"
+ [u"val2"]=>
+ unicode(3) "tsr"
+}
+===DONE===
+PDODatabase::__destruct()
+PDOStatementX::__destruct()
diff --git a/ext/spl/tests/iterator_028.phpt b/ext/spl/tests/iterator_028.phpt
index 8b53b2123a..7ec76d8144 100755
--- a/ext/spl/tests/iterator_028.phpt
+++ b/ext/spl/tests/iterator_028.phpt
@@ -110,3 +110,61 @@ bool(false)
string(33) "Parameter max_depth must be >= -1"
int(4)
===DONE===
+--UEXPECT--
+===?===
+bool(false)
+0: 1
+0: 2
+1: 31
+1: 32
+2: 331
+3: 3321
+4: 33221
+0: 4
+===2===
+int(2)
+0: 1
+0: 2
+1: 31
+1: 32
+2: 331
+0: 4
+===X===
+bool(false)
+0: 1
+0: 2
+1: 31
+1: 32
+2: 331
+3: 3321
+4: 33221
+0: 4
+===3===
+int(3)
+0: 1
+0: 2
+1: 31
+1: 32
+2: 331
+3: 3321
+0: 4
+===5===
+int(5)
+0: 1
+0: 2
+1: 31
+1: 32
+2: 331
+3: 3321
+4: 33221
+0: 4
+===0===
+int(0)
+0: 1
+0: 2
+0: 4
+===-1===
+bool(false)
+unicode(33) "Parameter max_depth must be >= -1"
+int(4)
+===DONE===