# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
+use Data::Dumper qw/Dumper/;
use File::Temp qw/tempfile/;
use Test::More tests => 8;
use Test::Warn;
my @warn;
local $SIG{__WARN__} = sub { push @warn, $_[0]; };
$output= $engine->transform({ xml => "<ignored/>", code => $xslt });
- is( ( grep { /failed to load external/ } @warn ), 1, 'Expected import error' );
+ is( ( grep { /failed to load external/ } @warn ), 1, 'Expected import error. Additional info: '.Dumper(@warn) );
is( ( grep { /read_net/ } @warn ), 0, 'No read_net warn for remote import' );
}