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!



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES

Related

Find related articles by a search for «New».