@@ -, +, @@ Opening and ending tag mismatch: a line 0 and b Opening and ending tag mismatch: a line 1 and b --- t/db_dependent/Koha/XSLT/Base.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/t/db_dependent/Koha/XSLT/Base.t +++ a/t/db_dependent/Koha/XSLT/Base.t @@ -84,7 +84,7 @@ is( $engine->err, Koha::XSLT::Base::XSLTH_ERR_5, 'Engine returns error on non-xm # Malformed XML tests warning_like { $output = $engine->transform({ xml => '', code => $xsl_1 }) } - qr{parser error : Opening and ending tag mismatch: a line 1 and b}, + qr{parser error : Opening and ending tag mismatch: a line (0|1) and b}, "Malformed XML warning correctly displayed"; is( $engine->err, Koha::XSLT::Base::XSLTH_ERR_5, 'Engine returns error on malformed xml' ); @@ -96,18 +96,18 @@ my $secondengine=Koha::XSLT::Base->new( { }); $engine->do_not_return_source(1); warning_like { $output = $engine->transform({ xml => '', code => $xsl_1 }) } - qr{parser error : Opening and ending tag mismatch: a line 1 and b}, + qr{parser error : Opening and ending tag mismatch: a line (0|1) and b}, "Malformed XML warning correctly displayed"; is( defined $output? 1: 0, 0, 'Engine respects do_not_return_source==1'); $secondengine->print_warns(1); warning_like { $output = $secondengine->transform({ xml => '', code => $xsl_1 }) } - qr{parser error : Opening and ending tag mismatch: a line 1 and b}, + qr{parser error : Opening and ending tag mismatch: a line (0|1) and b}, "Malformed XML warning correctly displayed"; is( defined $output? 1: 0, 0, 'Second engine respects it too'); undef $secondengine; #bye $engine->do_not_return_source(0); warning_like { $output = $engine->transform({ xml => '', code => $xsl_1 }) } - qr{parser error : Opening and ending tag mismatch: a line 1 and b}, + qr{parser error : Opening and ending tag mismatch: a line (0|1) and b}, "Malformed XML warning correctly displayed"; is( defined $output? 1: 0, 1, 'Engine respects do_not_return_source==0'); --