public function test_mysql_function_invalid_result($function, $error, $args, $skipHHVM = false)
{
$this->skipForHHVM($skipHHVM);
$this->expectException(\PHPUnit_Framework_Error_Warning::class);
$this->expectExceptionMessageRegExp('@' . $error . '@');
if ($args !== []) {
$function(null, ...$args);
}
$function(null);
}