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--EXPECT--
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)
26Invalid stream (php://temp): bool(false)
27Invalid stream (php://input): bool(false)
28Invalid stream (php://memory): bool(false)
29File stream: bool(false)
30