Skip to content

Commit 34efc05

Browse files
committed
#19: 014-awaitAnyOf_basic.php - test stabilization
1 parent c4e4e98 commit 34efc05

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tests/await/006-awaitAny_empty.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ use function Async\awaitAny;
88
echo "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

1315
echo "end\n";
1416
?>
1517
--EXPECT--
1618
start
17-
NULL
19+
Result is null: OK
1820
end

tests/await/014-awaitAnyOf_basic.phpt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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

3436
echo "end\n";
3537
?>
3638
--EXPECT--
3739
start
38-
array(2) {
39-
[1]=>
40-
string(6) "second"
41-
[3]=>
42-
string(6) "fourth"
43-
}
40+
Count of results: OK
4441
end

0 commit comments

Comments
 (0)