diff options
author | Marcus Boerger <helly@php.net> | 2005-05-24 12:39:09 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-05-24 12:39:09 +0000 |
commit | 88157ad28412a7993b28c698c13880cc305747ce (patch) | |
tree | 4679177d3374bbcfff137924a7c629e8d665719e /ext/pdo_mysql/tests | |
parent | 041b37b2b968f73837c8dcba0204202c20d717a5 (diff) | |
download | php-git-88157ad28412a7993b28c698c13880cc305747ce.tar.gz |
- Add new tests for PDO_FETCH_INTO
Diffstat (limited to 'ext/pdo_mysql/tests')
-rwxr-xr-x | ext/pdo_mysql/tests/pdo_025.phpt | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/ext/pdo_mysql/tests/pdo_025.phpt b/ext/pdo_mysql/tests/pdo_025.phpt new file mode 100755 index 0000000000..371dc7e9b6 --- /dev/null +++ b/ext/pdo_mysql/tests/pdo_025.phpt @@ -0,0 +1,68 @@ +--TEST-- +PDO_MySQL: PDO_FETCH_INTO +--SKIPIF-- +<?php # vim:ft=php +require_once('skipif.inc'); ?> +--FILE-- +<?php + +require_once('connection.inc'); +require_once('prepare.inc'); + +require_once($PDO_TESTS . 'pdo_025.inc'); + +?> +===DONE=== +<?php exit(0); ?> +--EXPECTF-- +object(Test)#%d (3) { + ["id"]=> + string(2) "10" + ["val"]=> + string(3) "Abc" + ["val2"]=> + string(3) "zxy" +} +object(Test)#%d (3) { + ["id"]=> + string(2) "20" + ["val"]=> + string(3) "Def" + ["val2"]=> + string(3) "wvu" +} +object(Test)#%d (3) { + ["id"]=> + string(2) "30" + ["val"]=> + string(3) "Ghi" + ["val2"]=> + string(3) "tsr" +} +object(Test)#%d (3) { + ["id"]=> + string(2) "40" + ["val"]=> + string(3) "Jkl" + ["val2"]=> + string(3) "qpo" +} +object(Test)#%d (3) { + ["id"]=> + string(2) "50" + ["val"]=> + string(3) "Mno" + ["val2"]=> + string(3) "nml" +} +object(Test)#%d (3) { + ["id"]=> + string(2) "60" + ["val"]=> + string(3) "Pqr" + ["val2"]=> + string(3) "kji" +} +===FAIL=== + +Fatal error: Cannot access protected property Fail::$id in %spdo_025.inc on line %d |