Re: enhanced generate-phpt.php etc.
| From: | Christopher Jones | Date: | Wed, 17 Nov 2010 19:17:44 +0000 |
| Subject: | Re: enhanced generate-phpt.php etc. | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65673@lists.php.net to get a copy of this message | ||
On 10/05/2010 07:00 PM, philipp@strazny.com wrote:
Hi, I have added some enhancements to generate-phpt.php: - ability to include a user file - ability to find all classes in the user file and generate tests for all methods - do the above recursively for all files in a directory - ability to specify an output directory for the phpt files - write tests only if the phpt does not exist yet As is, generate-phpt.php only works well for built-ins and compiled extensions - with the enhancements it is very easy to generate tests for a user's application. Since existing tests are not overwritten, users can rerun generate-phpt.php and thereby check their application for new methods. Please let me know to whom or where/how to submit the code, so you can have a closer look. I'd also be happy to contribute documentation and/or a tutorial for userland usage. Cheers, PhilippPhilipp, I don't recall seeing any answer to you. Try emailing zoe at php dot net directly. She was involved in the creation of this script. Chris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/