From Dirk Thomas:
when i try to use a class which extends PHPUnit_Framework_TestSuite in the fileset of a php unit task, i am unable to run the tests defined in that suite. With subclasses of PHPUnit_Framework_TestCase everything works fine.
I poked a little bit around in the PHPUnitTask. For me it looks like a problem in the main-methode. Inside of the loop 'foreach ($tests as $test)', which executes all the tests, the first condition seems to be problematic.
In my case the variable $test is the name of my subclass of TestSuite. Therefore the condition 'is_subclass_of(..)' is true. But just using the string as the argument for the later execute won't work, since PHPUnit can only handle strings of TestCases in that way. If $test is an object this would work well.
<snip>
I modified the inner part of the if-block (line 213 in PHPUnitTask.php). If $test is just a string (no object) just call its constructor to get an instance. This works since it was tested on "is_subclass_of($test, 'PHPUnit_Framework_TestSuite')" before.