blob: a702c93e7d177340d1396d98e888714658ed0eb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
--TEST--
PDO_MySQL: PDOStatement and SPL Iterators
--SKIPIF--
<?php # vim:ft=php
require_once('skipif.inc');
if (!extension_loaded('SPL')) die('skip SPL not available');
if (!class_exists('IteratorIterator')) die ('skip Class IteratorIterator does not exist');
?>
--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(2) {
[0]=>
string(1) "A"
[1]=>
string(6) "Group1"
}
array(2) {
[0]=>
string(1) "B"
[1]=>
string(6) "Group2"
}
===DONE===
|