From deb0c4093407b694e847862c6447a501beaaa018 Mon Sep 17 00:00:00 2001
From: Christian Schneider
Date: Mon, 2 Sep 2019 17:16:47 +0200
Subject: Use older syntax for tests
---
test/it.t | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'test')
diff --git a/test/it.t b/test/it.t
index 0e2b06d..af11b94 100755
--- a/test/it.t
+++ b/test/it.t
@@ -445,7 +445,8 @@ is(it::map('5*$k+$v', array(0 => 1, 1 => 2)), array(1, 7));
is(it::map(function($k, $v) {return 5*$k+$v;}, array(0 => 1, 1 => 2)), array(1, 7));
is(it::map('strlen', array("aaa", "aa")), array(3, 2));
is(it::map('it::ucfirst', array("aaa")), array("Aaa"));
-($dom = new DOMDocument)->loadXML('42');
+$dom = new DOMDocument;
+$dom->loadXML('42');
is(it::map('$v->C14N()', $dom->childNodes), [ '42' ], "Traversable: Needs copy, not modifiable in-place");
# Special values which are not callable
is(it::map('null', array("aaa", "aa")), array(null, null));
--
cgit v1.2.3