aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-12-04 01:33:00 (EST)
committerzzhongwei2012-12-04 01:33:00 (EST)
commit99e9bc40cbeb56a6ddeac2ead33f50d00ddf2b9e (patch)
tree484941a33178475320cfbb74f62d073c7ed84747
parentfb80c250798ff710b29d0fdebaa06eb1fb18ac5e (diff)
downloadorg.eclipse.pdt-99e9bc40cbeb56a6ddeac2ead33f50d00ddf2b9e.zip
org.eclipse.pdt-99e9bc40cbeb56a6ddeac2ead33f50d00ddf2b9e.tar.gz
org.eclipse.pdt-99e9bc40cbeb56a6ddeac2ead33f50d00ddf2b9e.tar.bz2
unit tests for bug 395040
-rw-r--r--tests/org.eclipse.php.core.tests/workspace/codeassist/php5/test395040_parent.pdtt16
-rw-r--r--tests/org.eclipse.php.core.tests/workspace/codeassist/php5/test395040_self.pdtt2
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/org.eclipse.php.core.tests/workspace/codeassist/php5/test395040_parent.pdtt b/tests/org.eclipse.php.core.tests/workspace/codeassist/php5/test395040_parent.pdtt
new file mode 100644
index 0000000..726b9a2
--- /dev/null
+++ b/tests/org.eclipse.php.core.tests/workspace/codeassist/php5/test395040_parent.pdtt
@@ -0,0 +1,16 @@
+--TEST--
+Test global constant.
+--PREFERENCES--
+org.eclipse.php.core/contentAssistShowStrictOptions=false
+--FILE--
+<?
+class MyClass {
+ function test($param) {
+ $a = 1;
+ parent|
+ }
+}
+?>
+--EXPECT--
+keyword(ParentIterator)
+?> \ No newline at end of file
diff --git a/tests/org.eclipse.php.core.tests/workspace/codeassist/php5/test395040_self.pdtt b/tests/org.eclipse.php.core.tests/workspace/codeassist/php5/test395040_self.pdtt
index 3bfc3d5..6df879b 100644
--- a/tests/org.eclipse.php.core.tests/workspace/codeassist/php5/test395040_self.pdtt
+++ b/tests/org.eclipse.php.core.tests/workspace/codeassist/php5/test395040_self.pdtt
@@ -7,7 +7,7 @@ org.eclipse.php.core/contentAssistShowStrictOptions=false
class MyClass {
function test($param) {
$a = 1;
- | // trigger Content Assist at cursor position "|"
+ self|
}
}
?>