diff options
| author | Marcus Boerger <helly@php.net> | 2005-02-24 00:11:16 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2005-02-24 00:11:16 +0000 |
| commit | b89fda667f3e8c280995a90e9ff63684f0b1d971 (patch) | |
| tree | 42e40644a1e6210dbe03059b76cb8449d4b222d6 /ext/pdo_mysql/tests/pdo_012.phpt | |
| parent | fac3e54ad97158c1c9f3b76b58dc47a1774f7b07 (diff) | |
| download | php-git-b89fda667f3e8c280995a90e9ff63684f0b1d971.tar.gz | |
- Drop driver name from generic tests and reserve those names for driver
specific tests.
# Well a little design correction
Diffstat (limited to 'ext/pdo_mysql/tests/pdo_012.phpt')
| -rwxr-xr-x | ext/pdo_mysql/tests/pdo_012.phpt | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/ext/pdo_mysql/tests/pdo_012.phpt b/ext/pdo_mysql/tests/pdo_012.phpt new file mode 100755 index 0000000000..112d2fa9dc --- /dev/null +++ b/ext/pdo_mysql/tests/pdo_012.phpt @@ -0,0 +1,70 @@ +--TEST-- +PDO_MySQ: PDOStatement::setFetchMode +--SKIPIF-- +<?php # vim:ft=php +require_once('skipif.inc'); ?> +--FILE-- +<?php + +require_once('connection.inc'); +require_once('prepare.inc'); + +require_once($PDO_TESTS . 'pdo_012.inc'); + +?> +===DONE=== +<?php exit(0); ?> +--EXPECTF-- +array(2) { + [0]=> + array(2) { + [0]=> + string(1) "A" + [1]=> + string(6) "Group1" + } + [1]=> + array(2) { + [0]=> + string(1) "B" + [1]=> + string(6) "Group2" + } +} +Test::__construct(N/A) +Test::__construct(N/A) +array(2) { + [0]=> + object(Test)#%d (2) { + ["val"]=> + string(1) "A" + ["grp"]=> + string(6) "Group1" + } + [1]=> + object(Test)#%d (2) { + ["val"]=> + string(1) "B" + ["grp"]=> + string(6) "Group2" + } +} +Test::__construct(Changed) +Test::__construct(Changed) +array(2) { + [0]=> + object(Test)#%d (2) { + ["val"]=> + string(1) "A" + ["grp"]=> + string(6) "Group1" + } + [1]=> + object(Test)#%d (2) { + ["val"]=> + string(1) "B" + ["grp"]=> + string(6) "Group2" + } +} +===DONE=== |
