RE: [PEAR-QA] Tests
| From: | Lukas Smith | Date: | Mon, 16 Jun 2003 10:29:43 +0000 |
| Subject: | RE: [PEAR-QA] Tests | ||
| Groups: | php.pear.qa | ||
| Request: | Send a blank email to pear-qa+get-42@lists.php.net to get a copy of this message | ||
> From: admin [mailto:admin] On Behalf Of Sebastian Bergmann
> Sent: Monday, June 16, 2003 12:25 PM
>
> Lukas Smith wrote:
> > Specifically the limitations (compared to phpt) would be of interest
> > and if these can be overcome.
>
> I don't see the differences as limitations. I don't think, though,
that
> we should use .phpt for PEAR, but rather use PHPUnit, for instance
> like this:
The main limitation that was brought up at the meeting was that phpunit
cannot handle php crashes which is a no issue for PEAR but is an issue
for PECL. So it might become an issue for PEAR packages that get ported
to C. But generally its not a biggy.
The other thing that was brought up was ease of development. But I think
that is just a learning thing and writing tools to help generate
skeleton from existing code (although the best course of action is of
course to write the phpunit test cases first).
Any thing else?
> > Also what is the status of phpunit in regards to php4?
>
> The PHPUnit 0.x version (ZEND_ENGINE_1 branch in CVS) is stable and
a
> feature-complete implementation of junit.framework with a partial
> implementation of junit.extensions for PHP 4.
>
> Test Cases written for PHPUnit 0.x will work (after chaning one line
> of code) with PHPUnit 1.x (a/k/a. the PHP 5 version) without hassle.
Ok great
Regards,
Lukas