diff options
Diffstat (limited to 'ext/pdo_mysql/tests/show_tables.phpt')
-rw-r--r-- | ext/pdo_mysql/tests/show_tables.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/pdo_mysql/tests/show_tables.phpt b/ext/pdo_mysql/tests/show_tables.phpt new file mode 100644 index 0000000..1b1ef67 --- /dev/null +++ b/ext/pdo_mysql/tests/show_tables.phpt @@ -0,0 +1,20 @@ +--TEST-- +PDO MySQL SHOW TABLES +--SKIPIF-- +<?php +if (!extension_loaded('pdo') || !extension_loaded('pdo_mysql')) die('skip not loaded'); +require dirname(__FILE__) . '/config.inc'; +require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc'; +PDOTest::skip(); +?> +--FILE-- +<?php +require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc'; +$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt'); + +print_r($db->query('SHOW TABLES')); +--EXPECT-- +PDOStatement Object +( + [queryString] => SHOW TABLES +) |