예제 #1
0
 public function testRunProcess()
 {
     $this->skipIfNotUnix();
     $command = './tests/commands/unix/test_binary';
     $process = new Process(new UnixEnvironment(), $command, getcwd());
     $process->wait();
     $this->assertEquals(false, $process->isRunning());
     $this->assertEquals('./tests/commands/unix/test_binary', $process->getCommand());
 }
예제 #2
0
 public function testRunProcess()
 {
     $this->skipIfNotWindows();
     $command = 'tests\\commands\\windows\\test.bat';
     $process = new Process(new WindowsEnvironment(), $command, getcwd());
     $process->wait();
     $this->assertEquals(false, $process->isRunning());
     $this->assertEquals('tests\\commands\\windows\\test.bat', $process->getCommand());
 }