public function testWaitWithClosure() { $this->skipIfNotUnix(); $command = './tests/commands/unix/test_binary'; $process = new Process(new UnixEnvironment(), $command, getcwd()); $process->wait(function ($stdOut, $stdErr) { }); $this->assertEquals(false, $process->isRunning()); }
public function testWaitWithClosure() { $this->skipIfNotWindows(); $command = 'tests\\commands\\windows\\test.bat'; $process = new Process(new WindowsEnvironment(), $command, getcwd()); $process->wait(function ($stdOut, $stdErr) { }); $this->assertEquals(false, $process->isRunning()); }