public function test_mysql_unbuffered_query_close_legacy()
{
if (!version_compare(PHP_VERSION, '7.0.0', '<')) {
$this->markTestIncomplete("PHP < 7.0.0 is required");
}
$conn = $this->getConnection("shim_test");
$result = mysql_unbuffered_query("SELECT one, two FROM testing");
$this->assertResult($result);
try {
mysql_close($conn);
} catch (\PHPUnit_Framework_Error_Notice $e) {
$this->assertEquals("mysql_close(): Function called without first fetching all rows from a previous unbuffered query", $e->getMessage());
}
}