enhanced generate-phpt.php etc.

From: Date: Wed, 06 Oct 2010 02:00:52 +0000
Subject: enhanced generate-phpt.php etc.
Groups: php.qa 
Request: Send a blank email to php-qa+get-65653@lists.php.net to get a copy of this message
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, Philipp

« previous php.qa (#65653) next »