Skip to content

Commit f67051d

Browse files
committed
test: cover gh-116 issue
1 parent 1721e2b commit f67051d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/AbstractProcessTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,22 @@ function ($output) use (&$stdErr) {
10991099
$loop->run();
11001100
}
11011101

1102+
public function testIssue116()
1103+
{
1104+
$loop = $this->createLoop();
1105+
$process = new Process('exit 0');
1106+
1107+
$process->start($loop);
1108+
1109+
// through some chain
1110+
$process->stdout->on('close', [$process, 'close']);
1111+
1112+
$process->close();
1113+
$loop->stop();
1114+
1115+
$this->assertFalse($process->isRunning());
1116+
}
1117+
11021118
/**
11031119
* Execute a callback at regular intervals until it returns successfully or
11041120
* a timeout is reached.

0 commit comments

Comments
 (0)