Re: Addition to PHPUnit
| From: | Sebastian Bergmann | Date: | Wed, 22 Sep 2004 10:08:02 +0000 |
| Subject: | Re: Addition to PHPUnit | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33515@lists.php.net to get a copy of this message | ||
Scott Mattocks wrote:
> The class itself and the classes it creates should be PEAR compliant.
I committed your code to the PHPUnit CVS
http://cvs.php.net/co.php/pear/PHPUnit/PHPUnit/Skeleton.php
it will be part of the upcoming PHPUnit-1.1.0 release. For this release
I am also waiting on Wolfram's decision on whether or not to accept a
patch for the GUI Setup Decorator that I recently received.
> I can (and will in the very near future) rewrite the class for PHP5,
> which means it can be added to PHPUnit2 also.
Inspired by your code for PHPUnit I already adapted the idea for
PHPUnit2. The code for the new PHPUnit2_Util_Skeleton class can be found
here
http://cvs.php.net/co.php/pear/PHPUnit2/Util/Skeleton.php
This class can be used from the PHPUnit2 commadline utility to
generate a skeleton ClassTest.php file for a given Class.php.
http://www.sebastian-bergmann.de/stuff/BankAccountTest.phps
has been created using
$ phpunit --skeleton BankAccount
The original BankAccount.php can be found here
http://www.sebastian-bergmann.de/stuff/BankAccount.phps
Thanks again for your code contribution to PHPUnit and for giving me
something to hack on for PHPUnit2 ;-)
Kind regards,
Sebastian
--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69