File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,13 @@ use function Async\awaitAny;
88echo "start \n" ;
99
1010$ result = awaitAny ([]);
11- var_dump ($ result );
11+
12+ $ resultCheck = $ result === null ? "OK " : "FALSE: " . var_export ($ result , true );
13+ echo "Result is null: $ resultCheck \n" ;
1214
1315echo "end \n" ;
1416?>
1517--EXPECT--
1618start
17- NULL
19+ Result is null: OK
1820end
Original file line number Diff line number Diff line change @@ -29,16 +29,13 @@ $coroutines = [
2929];
3030
3131$ results = awaitAnyOf (2 , $ coroutines );
32- var_dump ($ results );
32+
33+ $ countOfResults = count ($ results ) >= 2 ? "OK " : "FALSE: " .count ($ results );
34+ echo "Count of results: $ countOfResults \n" ;
3335
3436echo "end \n" ;
3537?>
3638--EXPECT--
3739start
38- array(2) {
39- [1]=>
40- string(6) "second"
41- [3]=>
42- string(6) "fourth"
43- }
40+ Count of results: OK
4441end
You can’t perform that action at this time.
0 commit comments