Re: AllTests.php and pear run-tests
| From: | Christian Weiske | Date: | Tue, 03 Jul 2007 05:03:14 +0000 |
| Subject: | Re: AllTests.php and pear run-tests | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47156@lists.php.net to get a copy of this message | ||
> After sleeping a night over it, I found another method that would
> work but is not really good: <?php
> if (class_exists('AllTests')) {
> $classname = 'HTML_BBCodeParser_AllTests';
> } else {
> $classname = 'AllTests';
> }
> class $classname {
> ...
> }
> ?>
That will not work since most AllTests.php automatically run Alltests::main() at the end of the
script.
--
Mit freundlichen Grüßen/Regards,
Christian Weiske