commented out code responsible for exceptions. now showing correct suite names and...
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / XMLReportHandler.java
index c81e518..69ab8e0 100644 (file)
@@ -22,6 +22,8 @@ public class XMLReportHandler extends DefaultHandler {
        private String currentCommand;
        private String currentTestCount;
        private String currentTestID;
+       private String currentTestName;
+       private String currentTestParentTestSuiteName;
        
        private void doAsyncRunnable(Runnable runnable) {
                
@@ -102,12 +104,16 @@ public class XMLReportHandler extends DefaultHandler {
                        currentCommand = attributes.getValue("command");
                        currentTestCount = attributes.getValue("testCount");
                        currentTestID = attributes.getValue("testID");
+                       currentTestName = attributes.getValue("testName");
+                       currentTestParentTestSuiteName = attributes.getValue("parentTestSuiteName");
                        
                        doAsyncRunnable(new Runnable() {
                                
                                public void run() {
                                        
-                                       view.handleCommand(currentCommand, currentTestCount, currentTestID);            
+                                       //view.handleCommand(currentCommand, currentTestCount, currentTestID, );
+                                       view.handleCommand(currentCommand, new String[] {currentTestID, currentTestCount,  currentTestName, currentTestParentTestSuiteName});           
+                                       
                                }                       
                        });