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 9033a40 commit ed3846aCopy full SHA for ed3846a
1 file changed
test-kernel/api/functional.some.spec.php
@@ -19,12 +19,12 @@ function () {
19
yield;
20
},
21
function () {
22
+ yield 0.01;
23
echo 'b';
- yield;
24
25
26
+ yield 0.02;
27
echo 'c';
28
}
29
);
30
expect(ob_get_clean())->to->equal('abc');
@@ -89,21 +89,22 @@ function () {
89
expect(yield Recoil::some(
90
2,
91
92
+ yield 1; // ensure 'a' takes much longer than the others
93
94
return 'a';
95
96
97
+ yield; // ensure 'b' takes longer than 'c'
98
+
99
return 'b';
100
101
102
return 'c';
103
104
105
))->to->equal([
- 1 => 'b',
106
2 => 'c',
107
+ 1 => 'b',
108
]);
109
});
110
0 commit comments