diff options
Diffstat (limited to 'tests/MySqlShimTest.php')
-rw-r--r-- | tests/MySqlShimTest.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/MySqlShimTest.php b/tests/MySqlShimTest.php index 3cd86e2..7ffb704 100644 --- a/tests/MySqlShimTest.php +++ b/tests/MySqlShimTest.php @@ -840,11 +840,6 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase mysql_escape_string("'\0\032\r\n\"\\"); } - public function tearDown() - { - @mysql_close(); - } - public function test_mysql_select_db() { $this->getConnection(); @@ -866,6 +861,18 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase $this->assertFalse(mysql_select_db('nonexistent')); } + public function test_mysql_db_name() + { + $conn = $this->getConnection(); + $dbs = mysql_list_dbs(); + $this->assertEquals('information_schema', mysql_db_name($dbs, 0)); + } + + public function tearDown() + { + @mysql_close(); + } + public static function setUpBeforeClass() { error_reporting(E_ALL & ~E_DEPRECATED); |