Skip to content

Commit 8cf43d8

Browse files
committed
Add test for complex ordering.
1 parent 9cd04b4 commit 8cf43d8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
Functions are executed in the expected order
3+
--FILE--
4+
<?php
5+
6+
function foo() { echo __FUNCTION__, PHP_EOL; return 1; }
7+
function bar() { echo __FUNCTION__, PHP_EOL; return false; }
8+
function baz($in) { echo __FUNCTION__, PHP_EOL; return $in; }
9+
function quux($in) { echo __FUNCTION__, PHP_EOL; return $in; }
10+
11+
$result = foo()
12+
|> (bar() ? baz(...) : quux(...))
13+
|> var_dump(...);
14+
15+
?>
16+
--EXPECT--
17+
foo
18+
bar
19+
quux
20+
int(1)

0 commit comments

Comments
 (0)