Skip to content

Commit 1792ade

Browse files
Fabien Villepintenikic
Fabien Villepinte
authored andcommitted
Improve test usleep_basic by inlining its output
Closes GH-4703.
1 parent 803dc6b commit 1792ade

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ext/standard/tests/general_functions/usleep_basic.phpt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,16 @@ usleep($sleeptime);
2727
$time_end = microtime(true);
2828
$time = ($time_end - $time_start) * 1000 * 1000;
2929

30-
echo "Thread slept for " . $time . " micro-seconds\n";
30+
$summary = "Thread slept for " . $time . " micro-seconds\n";
3131

3232
if ($time >= $sleeplow) {
33-
echo "TEST PASSED\n";
33+
echo "TEST PASSED: $summary";
3434
} else {
35-
echo "TEST FAILED\n";
35+
echo "TEST FAILED: $summary";
3636
}
3737
?>
3838
===DONE===
3939
--EXPECTF--
4040
*** Testing usleep() : basic functionality ***
41-
Thread slept for %f micro-seconds
42-
TEST PASSED
41+
TEST PASSED: Thread slept for %f micro-seconds
4342
===DONE===

0 commit comments

Comments
 (0)