features/bootstrap/FeatureContext.php
public function theExitCodeShouldBeZero()
    {
        if ($this->getReturnCode() != 0) {
            throw new \Exception(
                'Return code was ' . $this->getReturnCode() . ' with output '
                .$this->getOutput() . $this->process->getOutput()
            );
        }
    }
public function theExitCodeShouldBeZero()
    {
        if ($this->getReturnCode() != 0) {
            throw new \Exception(
                'Return code was ' . $this->getReturnCode() . ' with output '
                .$this->getOutput() . $this->process->getOutput()
            );
        }
    }
public function theExitCodeShouldBeZero ( ) { if ( $ this -> getReturnCode ( ) != 0 ) { throw new \ Exception ( 'Return code was ' . $ this -> getReturnCode ( ) . ' with output ' . $ this -> getOutput ( ) . $ this -> process -> getOutput ( ) ) ; } }
Verifies whether the return code was 0 and thus execution was a success.

@Then /^the exit code should be zero$/

@throws \Exception if the condition is not fulfilled

@return void
Verifies whether the return code was 0 and thus execution was a success .