2005-02-23 01:13:13 +00:00
|
|
|
--TEST--
|
|
|
|
PDO_PGSQL: PDOStatement and SPL Iterators
|
|
|
|
--SKIPIF--
|
|
|
|
<?php # vim:ft=php
|
|
|
|
require_once('skipif.inc');
|
|
|
|
if (!extension_loaded('SPL')) die('skip SPL not available');
|
2005-03-13 22:35:34 +00:00
|
|
|
if (!class_exists('IteratorIterator')) die ('skip Class IteratorIterator does not exist');
|
2005-02-23 01:13:13 +00:00
|
|
|
?>
|
|
|
|
--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
|
2005-02-23 23:28:30 +00:00
|
|
|
array(2) {
|
2005-02-23 01:13:13 +00:00
|
|
|
[0]=>
|
|
|
|
string(1) "A"
|
|
|
|
[1]=>
|
|
|
|
string(6) "Group1"
|
|
|
|
}
|
2005-02-23 23:28:30 +00:00
|
|
|
array(2) {
|
2005-02-23 01:13:13 +00:00
|
|
|
[0]=>
|
|
|
|
string(1) "B"
|
|
|
|
[1]=>
|
|
|
|
string(6) "Group2"
|
|
|
|
}
|
|
|
|
===DONE===
|