public function test_mysql_error()
{
$this->getConnection();
$this->assertEmpty(mysql_error());
$result = mysql_query("SELECT VERSION(");
$this->assertFalse($result);
$this->assertRegExp('@You have an error in your SQL syntax; check the manual that corresponds to your (.*?) ' . 'server version for the right syntax to use near \'\' at line 1@', mysql_error());
}