Lines Matching refs:exception
512 * @param mixed $exception
520 public function setExpectedException($exception, $message = '', $code = null) argument
530 $this->expectedException = $exception;
542 * @param mixed $exception
550 public function setExpectedExceptionRegExp($exception, $messageRegExp = '', $code = null) argument
556 $this->expectedException = $exception;
565 * @param string $exception
567 public function expectException($exception) argument
569 if (!is_string($exception)) {
573 $this->expectedException = $exception;
1936 * @param Throwable|Exception $exception
1942 public static function throwException($exception) argument
1944 return new PHPUnit_Framework_MockObject_Stub_Exception($exception);