assertSame($stream, ByteStream\getStdin()); $this->assertSame(\STDIN, $stream->getResource()); }); } public function testGetStdout() { Loop::run(function () { $stream = ByteStream\getStdout(); $this->assertSame($stream, ByteStream\getStdout()); $this->assertSame(\STDOUT, $stream->getResource()); }); } public function testGetStderr() { Loop::run(function () { $stream = ByteStream\getStderr(); $this->assertSame($stream, ByteStream\getStderr()); $this->assertSame(\STDERR, $stream->getResource()); }); } }