commented out code responsible for exceptions. now showing correct suite names and...
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / TestPoolLabelProvider.java
index 6977a6d..344bb08 100644 (file)
@@ -29,14 +29,21 @@ public class TestPoolLabelProvider extends LabelProvider {
 
        public String getText(Object element) {
                
+               String text = "";
+               
                if(element instanceof TestSuite) 
                        return ((TestSuite)element).getName();
-               else if(element instanceof TestCase)
-                       return ((TestCase)element).getTestName();
-               else
-                       return "UNKNOWN ELEMENT TYPE";
+               else if(element instanceof TestCase) {
                
+                       text = ((TestCase)element).getTestName();
+                       
+                       //has the form: TESTSUITENAME_TESTNAME
+                       
+               }
+               else
+                       text = "UNKNOWN ELEMENT TYPE";
                
+               return text;
                
        }