1) Fire 'Terminate' event on every thread on script termination. Fixes bug #1548528.
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / testpool / TestCase.java
index 5d5891a..5f3a8ed 100644 (file)
@@ -1,18 +1,16 @@
-/*
- * Created on Jul 31, 2004
+/*************************************************************************
+ * @author Ali Echihabi (ali_echihabi@ieee.org, ali.echihabi@souss.ca)
  *
- * To change the template for this generated file go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
+ * Plugin for PHP unit Testing.
+ * www.phpeclipse.de
+ * 
+ *************************************************************************/
+
+
 package net.sourceforge.phpeclipse.phpunit.testpool;
 
 
-/**
- * @author Ali Echihabi
- *
- * To change the template for this generated type comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
 public class TestCase {
 
        public static final String PASS = "PASS";
@@ -86,6 +84,11 @@ public class TestCase {
        public void setVerdict(String string) {
                verdict = string;
                
+               if(isFailure())
+                       parentSuite.setHasFailure();
+               if(isError())
+                       parentSuite.setHasError();
+               
        }
 
        /**