Annotation of embedaddon/php/ext/sqlite3/tests/sqlite3result_fetcharray_with_two_params_fails.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SQLite3Result::fetchArray() test, testing two params causes a failure
                      3: --CREDITS--
                      4: Michelangelo van Dam
                      5: # Belgian PHP Testfest 2009
                      6: --SKIPIF--
                      7: <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
                      8: --FILE--
                      9: <?php
                     10: $db = new SQLite3(':memory:');
                     11: $db->exec('CREATE TABLE foo (bar STRING)');
                     12: $db->exec("INSERT INTO foo (bar) VALUES ('This is a test')");
                     13: $db->exec("INSERT INTO foo (bar) VALUES ('This is another test')");
                     14: 
                     15: $result = $db->query('SELECT bar FROM foo');
                     16: var_dump($result->fetchArray(1,2));
                     17: ?>
                     18: --EXPECTF--
                     19: Warning: SQLite3Result::fetchArray() expects at most 1 parameter, 2 given in %s on line %d
                     20: NULL

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>