New TestSuite::addTestClass()at 2006-06-30 in Unittests by friebe (0 comments) The util.profiling.unittest.TestSuite class features a new method called addTestClass() which makes it quite a bit easier to programmatically run TestCases.Instead of having to loop through all methods using reflection, one can now simply call $suite->addTestClass(XPClass::forName('fully.qualified.ClassName'));- it'll take care of adding all methods annotated with @test to the suite. Note: The old way of adding tests will still work! |
|