Skip to content

Commit 99002bb

Browse files
committed
#19: * * Test stabilization awaitAnyOfWithErrors() - all coroutines succeed
1 parent b4d4a2d commit 99002bb

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

tests/await/017-awaitAnyOfWithErrors_all_success.phpt

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,17 @@ $coroutines = [
2525
];
2626

2727
$result = awaitAnyOfWithErrors(2, $coroutines);
28-
var_dump($result);
28+
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";
2934

3035
echo "end\n";
3136
?>
32-
--EXPECT--
37+
--EXPECTF--
3338
start
34-
array(2) {
35-
[0]=>
36-
array(2) {
37-
[1]=>
38-
string(6) "second"
39-
[2]=>
40-
string(5) "third"
41-
}
42-
[1]=>
43-
array(0) {
44-
}
45-
}
39+
Count of results: OK
40+
Count of errors: OK
4641
end

0 commit comments

Comments
 (0)