php-src/ext/pdo_mysql/tests/show_tables.phpt

21 lines
520 B
Plaintext
Raw Normal View History

--TEST--
PDO MySQL SHOW TABLES
--SKIPIF--
2005-08-11 23:45:13 +00:00
<?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';
2005-08-11 23:45:13 +00:00
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
)