function testComposeWithMultipleArgs() { $composed = compose(function ($x) { return "bar({$x})"; }, function ($a, $b, $c) { return "foo({$a}, {$b}, {$c})"; }); $this->assertSame('bar(foo(a, b, c))', $composed('a', 'b', 'c')); }