Jamm\Tester\Test::setException PHP Method

setException() public method

public setException ( Exception $exception )
$exception Exception
    public function setException(\Exception $exception)
    {
        if (!empty($exception)) {
            $this->exception = $exception;
            $this->successful = false;
        }
    }