1--TEST--
2Test stream_isatty with redirected STDOUT
3--SKIPIF--
4<?php
5if (getenv("SKIP_IO_CAPTURE_TESTS")) {
6	die("skip I/O capture test");
7}
8?>
9--CAPTURE_STDIO--
10STDOUT
11--FILE--
12<?php
13require __DIR__.'/stream_isatty.inc';
14testToStdOut();
15?>
16--EXPECTF--
17STDIN (constant): bool(true)
18STDIN (fopen): bool(true)
19STDIN (php://fd/0): bool(true)
20STDOUT (constant): bool(false)
21STDOUT (fopen): bool(false)
22STDOUT (php://fd/1): bool(false)
23STDERR (constant): bool(true)
24STDERR (fopen): bool(true)
25STDERR (php://fd/2): bool(true)
26Not a stream:
27Warning: stream_isatty() expects parameter 1 to be resource, string given in %s on line %d
28bool(false)
29Invalid stream (php://temp): bool(false)
30Invalid stream (php://input): bool(false)
31Invalid stream (php://memory): bool(false)
32File stream: bool(false)
33