public function throws(callable $fn, $exceptionType, $exceptionMessage = '', $message = '')
    {
        $this->assertion->setActual($fn);

        return $this->assertion->to->throw($exceptionType, $exceptionMessage, $message);
    }
public function throws(callable $fn, $exceptionType, $exceptionMessage = '', $message = '')
    {
        $this->assertion->setActual($fn);

        return $this->assertion->to->throw($exceptionType, $exceptionMessage, $message);
    }
public function throws ( callable $ fn , $ exceptionType , $ exceptionMessage = '' , $ message = '' ) { $ this -> assertion -> setActual ( $ fn ) ; return $ this -> assertion -> to -> throw ( $ exceptionType , $ exceptionMessage , $ message ) ; }
Performs a throw assertion.

@param callable $fn
@param $exceptionType
@param string $exceptionMessage
@param string $message
Performs a throw assertion .