phingofficial/phing — pull request #72 by bd808 (2012-01-20 21:07:59+00:00)
Title: Allow PHPUnit_Framework_TestSuite subclasses.

PHPUnit expects PHPUnit_Framework_TestSuite subclasses to be added to an
existing test suite as real objects rather than as ReflectionClass
wrappers. This small change BatchTest checks the type of each test
before passing it on to PHPUnit and skips the reflection wrapper if the
class is of the correct type.

We use this for runtime instantiation of TestCase instances configured by some external source such as a yaml file.