We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4d4a2d commit 99002bbCopy full SHA for 99002bb
tests/await/017-awaitAnyOfWithErrors_all_success.phpt
@@ -25,22 +25,17 @@ $coroutines = [
25
];
26
27
$result = awaitAnyOfWithErrors(2, $coroutines);
28
-var_dump($result);
+
29
+$countOfResults = count($result[0]) >= 2 ? "OK" : "FALSE: ".count($result[0]);
30
+$countOfErrors = count($result[1]) == 0 ? "OK" : "FALSE: ".count($result[1]);
31
32
+echo "Count of results: $countOfResults\n";
33
+echo "Count of errors: $countOfErrors\n";
34
35
echo "end\n";
36
?>
---EXPECT--
37
+--EXPECTF--
38
start
-array(2) {
- [0]=>
- array(2) {
- [1]=>
- string(6) "second"
39
- [2]=>
40
- string(5) "third"
41
- }
42
43
- array(0) {
44
45
-}
+Count of results: OK
+Count of errors: OK
46
end
0 commit comments