コード例 #1
0
 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());
 }
コード例 #2
0
 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());
 }