summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfbriere <fbriere>2006-02-17 03:25:19 +0000
committerfbriere <fbriere>2006-02-17 03:25:19 +0000
commit5974a88df6f696ff765f0467b64c15bb80206caf (patch)
tree498032ebe8c8f2e293d113e7169452f01297fba1
parent70860c963fab13b6c28e998519936fcb0af5d083 (diff)
Work around bug #17687
-rwxr-xr-xt/20emit.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/20emit.t b/t/20emit.t
index 7fac2d6..8ce5c8a 100755
--- a/t/20emit.t
+++ b/t/20emit.t
@@ -71,13 +71,19 @@ use constant TRANSACTIONS => (
my $txn = new Business::OnlinePayment 'InternetSecure', merchant_id => '0000';
-$/ = '';
foreach (TRANSACTIONS) {
$txn->test_transaction(delete $_->{_test});
$txn->content(%$_);
+
+ my $data = do {
+ # Work around bug #17687
+ local $/ = '';
+ scalar <DATA>;
+ };
+
is_deeply(
xml_in(Encode::encode('utf8', $txn->to_xml)),
- xml_in(scalar <DATA>)
+ xml_in($data)
);
}