Browse Source

Bug 13262: (QA followup) fix duplicate variable definition

Running

 $ prove t/db_dependent/XSLT_Handler.t

raises a couple warnings because of variable redefinitions. This small patch fixes that.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
3.20.x
Tomás Cohen Arazi 7 years ago
parent
commit
42c342972a
  1. 4
      t/db_dependent/XSLT_Handler.t

4
t/db_dependent/XSLT_Handler.t

@ -176,7 +176,7 @@ $output = $engine->transform({
xml => $xml_1,
file => $xsltfile_4,
});
my $dom = XML::LibXML->load_xml(string => $output);
my $result = $dom->find( '/just_a_tagname' );
$dom = XML::LibXML->load_xml(string => $output);
$result = $dom->find( '/just_a_tagname' );
is ( $result->to_literal(), '', "As expected, no XSLT parameters/variables were added");
#End of tests

Loading…
Cancel
Save