       * Sets up this test. Throws a PrerequisitesNotMetError if the "skipped" 
 Index: ports/classes/net/xp_framework/unittest/tests/SuiteTest.class.php
 ===================================================================
---- ports/classes/net/xp_framework/unittest/tests/SuiteTest.class.php	(revision 11672)
+--- ports/classes/net/xp_framework/unittest/tests/SuiteTest.class.php	(revision 11673)
 +++ ports/classes/net/xp_framework/unittest/tests/SuiteTest.class.php	(working copy)
 @@ -7,7 +7,8 @@
    uses(

+      // Check for methods annotated with afterClass
+      foreach ($test->getClass()->getMethods() as $m) {
+        if (!$m->hasAnnotation('afterClass')) continue;
+        $m->invoke(NULL, array());
+        break;
+      }
       return $result;
     }
     
@@ -300,10 +338,57 @@
       $this->notifyListeners('testRunStarted', array($this));
 
       $result= new TestResult();

     }
Index: ports/classes/net/xp_framework/unittest/tests/SimpleTestCase.class.php
===================================================================
--- ports/classes/net/xp_framework/unittest/tests/SimpleTestCase.class.php	(revision 11673)
+++ ports/classes/net/xp_framework/unittest/tests/SimpleTestCase.class.php	(working copy)
@@ -15,6 +15,30 @@
    * @purpose  Unit Test
