Skip to content

Commit 69d21fb

Browse files
committed
poll: extend backend test to show current backend
1 parent 70126fc commit 69d21fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/standard/tests/poll/poll_stream_backend_name_unix.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
99
--FILE--
1010
<?php
1111
require_once __DIR__ . '/poll.inc';
12+
// this just prints default poll ctx
13+
$poll_ctx = new PollContext();
14+
var_dump($poll_ctx->getBackendName());
1215
// poll is always available on Unix systems
1316
$poll_ctx = new PollContext(POLL_BACKEND_POLL);
1417
var_dump($poll_ctx->getBackendName());
@@ -17,6 +20,7 @@ $poll_ctx = new PollContext('poll');
1720
var_dump($poll_ctx->getBackendName());
1821

1922
?>
20-
--EXPECT--
23+
--EXPECTF--
24+
string(%d) %s
2125
string(4) "poll"
2226
string(4) "poll"

0 commit comments

Comments
 (0)