2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Test for PMA_getTableCount_test from core.lib.php
5 * PMA_getTableCount_test returns count of tables in given db
7 * @package phpMyAdmin-test
13 require_once 'libraries/core.lib.php';
14 require_once 'libraries/common.lib.php';
15 require_once 'libraries/config.default.php';
16 require_once 'libraries/Config.class.php';
17 require_once 'libraries/database_interface.lib.php';
19 require_once 'config.sample.inc.php';
21 class PMA_getTableCount_test
extends PHPUnit_Framework_TestCase
23 public function setUp()
25 $GLOBALS['PMA_Config'] = new PMA_Config();
28 function testTableCount()
30 $GLOBALS['cfg']['Server']['extension'] = 'mysql';
31 $GLOBALS['cfg']['Server']['host'] = 'localhost';
32 $GLOBALS['cfg']['Server']['user'] = 'root';
34 $this->assertEquals(5,PMA_getTableCount('meddb'));
35 $this->assertTrue(true);