1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Files
archived-php-src/ext/pdo_pgsql/tests/pdo_pgsql_014.phpt
Marcus Boerger 3f1738f96d - Add new tests
2005-02-23 01:13:13 +00:00

59 lines
904 B
PHP
Executable File

--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');
?>
--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===