Dshafik\MySQL\Tests\MySqlShimTest::test_mysql_error PHP Method

test_mysql_error() public method

public test_mysql_error ( )
    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());
    }
MySqlShimTest