Graze\Supervisor\Exception\TerminatedProcessExceptionTest::testInterface PHP Method

testInterface() public method

public testInterface ( )
    public function testInterface()
    {
        $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->assertInstanceOf('Graze\\Supervisor\\Exception\\ExceptionInterface', $exception);
        $this->assertInstanceOf('Graze\\Supervisor\\Exception\\ProcessExceptionInterface', $exception);
    }
TerminatedProcessExceptionTest