Graze\Supervisor\Exception\TerminatedProcessException::getProcess PHP Method

getProcess() public method

public getProcess ( ) : Process
return Symfony\Component\Process\Process
    public function getProcess()
    {
        return $this->process;
    }

Usage Example

 public function testGetProcess()
 {
     $this->process->shouldReceive('getCommandLine')->once()->withNoArgs()->andReturn('foo');
     $this->process->shouldReceive('getExitCode')->once()->withNoArgs()->andReturn(1);
     $this->process->shouldReceive('getExitCodeText')->once()->withNoArgs()->andReturn('bar');
     $this->process->shouldReceive('getOutput')->once()->withNoArgs()->andReturn('baz');
     $this->process->shouldReceive('getErrorOutput')->once()->withNoArgs()->andReturn('bam');
     $exception = new TerminatedProcessException($this->process);
     $this->assertSame($this->process, $exception->getProcess());
 }