Skip to content

Commit a9dbedf

Browse files
committed
test(macro): Fix tests
1 parent 18225dc commit a9dbedf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/src/integration/magic_method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
assert(null === $magicMethod->callUndefinedMagicMethod());
3434

3535
// __call_static
36-
assert("Hello from static call 1 2 3" === MagicMethod::callStaticSomeMagic(1, 2, 3));
36+
assert("Hello from static call 6" === MagicMethod::callStaticSomeMagic(1, 2, 3));
3737
assert(null === MagicMethod::callUndefinedStaticSomeMagic());

tests/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,10 @@ impl MagicMethod {
257257
arguments
258258
.iter()
259259
.filter(|(_, v)| v.is_long())
260-
.map(|(_, s)| s.long().unwrap().to_string())
260+
.map(|(_, s)| s.long().unwrap())
261261
.collect::<Vec<_>>()
262-
.join(" ")
262+
.iter()
263+
.sum::<i64>()
263264
);
264265

265266
let _ = zval.set_string(&concat_args, false);

0 commit comments

Comments
 (0)