Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrganor2010-02-17 08:42:22 +0000
committerrganor2010-02-17 08:42:22 +0000
commitb1d9c426adabe58f5666eb67a658dc5da8bd3a75 (patch)
treee429efe6b23f93f94db44f86a13f3219307e8eaf
parente5dca6b547cd74f16ca9284181c7878656814c85 (diff)
downloadorg.eclipse.pdt-b1d9c426adabe58f5666eb67a658dc5da8bd3a75.tar.gz
org.eclipse.pdt-b1d9c426adabe58f5666eb67a658dc5da8bd3a75.tar.xz
org.eclipse.pdt-b1d9c426adabe58f5666eb67a658dc5da8bd3a75.zip
Bug 222530 - Classes other than exceptions are suggested by the code completion after throw new
fixed
-rw-r--r--tests/org.eclipse.php.core.tests/workspace/codeassist/php53/testNewExceptionClass.pdtt31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/org.eclipse.php.core.tests/workspace/codeassist/php53/testNewExceptionClass.pdtt b/tests/org.eclipse.php.core.tests/workspace/codeassist/php53/testNewExceptionClass.pdtt
new file mode 100644
index 000000000..07adb4787
--- /dev/null
+++ b/tests/org.eclipse.php.core.tests/workspace/codeassist/php53/testNewExceptionClass.pdtt
@@ -0,0 +1,31 @@
+--TEST--
+Test new exception in try/catch throw
+--FILE--
+<?php class A{ function foo() { try {} catch (Exception $e) { throw new |; }}} ?>
+--EXPECT--
+method(SQLiteException)
+method(OutOfRangeException)
+method(BadFunctionCallException)
+method(DOMException)
+method(ImagickPixelIteratorException)
+method(RuntimeException)
+method(Exception)
+method(OutOfBoundsException)
+method(ErrorException)
+method(UnexpectedValueException)
+method(SoapFault)
+method(ReflectionException)
+method(RangeException)
+method(ImagickDrawException)
+method(ImagickException)
+method(ImagickPixelException)
+method(LogicException)
+method(LengthException)
+method(BadMethodCallException)
+method(UnderflowException)
+method(DomainException)
+method(PDOException)
+method(OverflowException)
+method(PharException)
+method(mysqli_sql_exception)
+method(InvalidArgumentException) \ No newline at end of file

Back to the top