commented out code responsible for exceptions. now showing correct suite names and...
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / testpool / TestPool.java
index a8e5e6c..4e631ee 100644 (file)
@@ -114,22 +114,6 @@ public class TestPool {
        
        }
 
-// This recursion is done at the php side (report generation)
-
-//     private int countSuiteExpectedTests(TestSuite suite) {
-//             
-//             int total = 0;
-//             
-//             total += suite.getNumTestCasesExpected();
-//             
-//             for(int i = 0; i < suite.getTestSuites().size(); i++) 
-//                     total += countSuiteExpectedTests((TestSuite) suite.getTestSuites().elementAt(i));
-//             
-//             System.out.println("total: " + total);
-//             
-//             return total;
-//     
-//     }
 
        public int getNumTestsOverall() {
        
@@ -150,19 +134,19 @@ public class TestPool {
                
                int total = 0;
                
-               Iterator i = tests.keySet().iterator();
-               String key = "";
-               while (i.hasNext()) {
-                       
-                       
-                       key = (String) i.next();
-                       TestCase element = (TestCase) tests.get(key);
-                       
-                       
-                       if(element.isFailure())
-                               total++;
-                       
-               }
+//             Iterator i = tests.keySet().iterator();
+//             String key = "";
+//             while (i.hasNext()) {
+//                     
+//                     
+//                     key = (String) i.next();
+//                     TestCase element = (TestCase) tests.get(key);
+//                     
+//                     
+//                     if(element.isFailure())
+//                             total++;
+//                     
+//             }
                        
                return total;
        }