We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1721e2b commit f2c536aCopy full SHA for f2c536a
1 file changed
tests/AbstractProcessTest.php
@@ -1099,6 +1099,28 @@ function ($output) use (&$stdErr) {
1099
$loop->run();
1100
}
1101
1102
+ public function testIssue116()
1103
+ {
1104
+ if (DIRECTORY_SEPARATOR === '\\') {
1105
+ $this->markTestSkipped('Process pipes not supported on Windows');
1106
+ }
1107
+
1108
+ $loop = $this->createLoop();
1109
+ $process = new Process('exit 0');
1110
1111
+ $process->start($loop);
1112
1113
+ // through some chain
1114
+ $process->stdout->on('close', function () use ($process) {
1115
+ $process->close();
1116
+ });
1117
1118
1119
+ $loop->stop();
1120
1121
+ $this->assertFalse($process->isRunning());
1122
1123
1124
/**
1125
* Execute a callback at regular intervals until it returns successfully or
1126
* a timeout is reached.
0 commit comments