Example #1
0
 public function testRunWithError()
 {
     $this->skipIfNotUnix();
     $path = './tests/commands/unix/error_binary';
     $command = new Command(new UnixEnvironment(), new NullProcessObserver(), $path, array(), getcwd());
     $this->assertEquals(new ProcessOutput(5, '', 'Fatal Error' . PHP_EOL), $command->runSynchronous());
 }