diff options
Diffstat (limited to 'ext/odbc/tests/odbc_tables_001.phpt')
-rw-r--r-- | ext/odbc/tests/odbc_tables_001.phpt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ext/odbc/tests/odbc_tables_001.phpt b/ext/odbc/tests/odbc_tables_001.phpt new file mode 100644 index 0000000..6b922f2 --- /dev/null +++ b/ext/odbc/tests/odbc_tables_001.phpt @@ -0,0 +1,29 @@ +--TEST-- +odbc_tables(): Basic test +--SKIPIF-- +<?php include 'skipif.inc'; ?> +--FILE-- +<?php + +include 'config.inc'; + +$conn = odbc_connect($dsn, $user, $pass); + +var_dump($result = odbc_tables($conn, '', '', '', '')); +var_dump(odbc_fetch_row($result)); + +var_dump($result = odbc_tables($conn, NULL, NULL, NULL, NULL)); +var_dump(odbc_fetch_row($result)); + +var_dump($result = odbc_tables($conn, 'FOO', 'FOO', 'FOO', 'FOO')); +var_dump(odbc_fetch_row($result)); + + +?> +--EXPECTF-- +resource(%d) of type (odbc result) +bool(false) +resource(%d) of type (odbc result) +bool(false) +resource(%d) of type (odbc result) +bool(false) |