Re: cvs: pear /PHPUnit PHPUnit_TestSuite.php
| From: | Andrei Zmievski | Date: | Tue, 27 Nov 2001 17:08:25 +0000 |
| Subject: | Re: cvs: pear /PHPUnit PHPUnit_TestSuite.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-1420@lists.php.net to get a copy of this message | ||
On Tue, 27 Nov 2001, Sebastian Bergmann wrote:
> function addTestSuite($testClass) {
> - // not implemented
> + if (class_exists($testClass)) {
> + $methods = get_class_methods($testClass);
> +
> + foreach ($methods as $method) {
> + if (substr($method, 0, 4) == 'test' && $method !=
> 'phpunit_testcase') {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
this will never be tested
-Andrei
Commitment, n.:
Commitment can be illustrated by a breakfast of ham and eggs. The chicken
was involved, the pig was committed.