tests ProcessFailedException throws exception if the process was successful
public function testProcessFailedExceptionThrowsException() {
$process = $this
->getMock('Symfony\\Component\\Process\\Process', array(
'isSuccessful',
), array(
'php',
));
$process
->expects($this
->once())
->method('isSuccessful')
->will($this
->returnValue(true));
$this
->setExpectedException('\\InvalidArgumentException', 'Expected a failed process, but the given process was successful.');
new ProcessFailedException($process);
}