Hi...
You don't have to modify the source. SimpleTest is designed to be extensible exactly because I cannot see all possible uses for the tool. It is a framework after all, from which you develop your in-house testing. An example tool extension would be Arbiter (on SF).Originally Posted by ceefour
To add exception support you need to subclass SimpleInvokerDecorator and add an assertException() method to the test case and finally override createInvoker() to wrap it in your new decorator. About a dozen lines of code all told. Because the innards of the tool are subject to change, this is not currently documented. You will have to read the source code and work it out. In particular, PHP4 errors are trapped that way.
Right now, I don't want to make major forks for PHP5 specific code due to lack of resources and anyway, PHP5 is installed on at most about 3% of live servers.
yours, Marcus




aint* and not (parent|HtmlReporter):
? Any forking of code, with ifdefs or anything else, is duplication and *just* a lot more work. Now as it happens exceptions are queued as a feature for version 1.1 (see the roadmap on the SimpleTest mail list archives) by which time PHP5 should be more than just a side show. However the first aim was to get a version 1 out as quickly as possible and this has only just happened.
.
. Looks like I overreacted again. I must have had a stressful week and not realised 
Bookmarks