src/Runnable/Spec.php
public function setException(\Exception $exception = null)
    {
        $this->exception = $exception;
        $this->result = self::FAILED;
    }
public function setException(\Exception $exception = null)
    {
        $this->exception = $exception;
        $this->result = self::FAILED;
    }
public function setException ( \ Exception $ exception = null ) { $ this -> exception = $ exception ; $ this -> result = self :: FAILED ; }
Sets the spec exception, also marking it as failed.

@param \Exception The exception
Sets the spec exception also marking it as failed .