File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1099,6 +1099,28 @@ function ($output) use (&$stdErr) {
1099
1099
$ loop ->run ();
1100
1100
}
1101
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
+ $ process ->close ();
1119
+ $ loop ->stop ();
1120
+
1121
+ $ this ->assertFalse ($ process ->isRunning ());
1122
+ }
1123
+
1102
1124
/**
1103
1125
* Execute a callback at regular intervals until it returns successfully or
1104
1126
* a timeout is reached.
You can’t perform that action at this time.
0 commit comments