public function test_mysql_errno() { $this->getConnection(); $this->assertEmpty(mysql_errno()); $result = mysql_query("SELECT VERSION("); $this->assertFalse($result); $this->assertEquals(1064, mysql_errno()); }