1--TEST-- 2SQLite3Result::numColumns parameters 3--CREDITS-- 4Jachim Coudenys 5# TestFest 2009 Belgium 6--SKIPIF-- 7<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> 8--FILE-- 9<?php 10$db = new SQLite3(':memory:'); 11echo 'Creating Table' . PHP_EOL; 12var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)')); 13 14echo 'Inserting data' . PHP_EOL; 15var_dump($db->exec('INSERT INTO test (time, id) VALUES(2, 1)')); 16 17echo 'Fetching number of columns' . PHP_EOL; 18$result = $db->query('SELECT id FROM test'); 19var_dump($result->numColumns('time')); 20 21echo 'Done'; 22 23?> 24--EXPECTF-- 25Creating Table 26bool(true) 27Inserting data 28bool(true) 29Fetching number of columns 30 31Warning: SQLite3Result::numColumns() expects exactly 0 parameters, 1 given in %s on line %d 32NULL 33Done 34