Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvpunski2010-02-17 11:11:03 +0000
committervpunski2010-02-17 11:11:03 +0000
commit84c7928904d35b28799bf28ca291630929e02683 (patch)
tree17ed4cb253e83dd275f2674cf7d7f97a704627fc
parentb1d9c426adabe58f5666eb67a658dc5da8bd3a75 (diff)
downloadorg.eclipse.pdt-84c7928904d35b28799bf28ca291630929e02683.tar.gz
org.eclipse.pdt-84c7928904d35b28799bf28ca291630929e02683.tar.xz
org.eclipse.pdt-84c7928904d35b28799bf28ca291630929e02683.zip
selection fails on parent::foo when the current class extends class from global namespace
-rw-r--r--tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember1.pdtt19
-rw-r--r--tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember2.pdtt19
-rw-r--r--tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember3.pdtt19
3 files changed, 57 insertions, 0 deletions
diff --git a/tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember1.pdtt b/tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember1.pdtt
new file mode 100644
index 000000000..885e52d32
--- /dev/null
+++ b/tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember1.pdtt
@@ -0,0 +1,19 @@
+--TEST--
+Test class methods with parent from global namespace
+--FILE--
+<?php
+namespace ABC;
+require_once 'dom.php';
+class MyClass extends \SoapClient {
+
+ function foo() {}
+ static function bar() {}
+ function test() {
+ parent::|__getTypes|();;
+ self::bar();
+ $this->foo();
+ }
+}
+?>
+--EXPECT--
+method(__getTypes)
diff --git a/tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember2.pdtt b/tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember2.pdtt
new file mode 100644
index 000000000..ae520ac68
--- /dev/null
+++ b/tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember2.pdtt
@@ -0,0 +1,19 @@
+--TEST--
+Test class methods with parent from global namespace
+--FILE--
+<?php
+namespace ABC;
+require_once 'dom.php';
+class MyClass extends \SoapClient {
+
+ function foo() {}
+ static function bar() {}
+ function test() {
+ parent::__getTypes();;
+ self::bar();
+ $this->|foo|();
+ }
+}
+?>
+--EXPECT--
+method(foo)
diff --git a/tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember3.pdtt b/tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember3.pdtt
new file mode 100644
index 000000000..cf55aa70e
--- /dev/null
+++ b/tests/org.eclipse.php.core.tests/workspace/selection/php53/testNamespaceClassMember3.pdtt
@@ -0,0 +1,19 @@
+--TEST--
+Test class methods with parent from global namespace
+--FILE--
+<?php
+namespace ABC;
+require_once 'dom.php';
+class MyClass extends \SoapClient {
+
+ function foo() {}
+ static function bar() {}
+ function test() {
+ parent::__getTypes();;
+ self::|bar|();
+ $this->foo();
+ }
+}
+?>
+--EXPECT--
+method(bar)

Back to the top