We want to test the _lack_ of warnings as well, and having the input and
output is handy for figuring out what's wrong.
) || diag dumper ({ args => $t->{args}, result => $stmt });
}
else {
- warnings_exist(
+ warnings_like(
sub { $cref->() },
$t->{warns} || [],
- );
+ ) || diag dumper ({ args => $t->{args}, result => $stmt });
is_same_sql_bind(
$stmt,