Prev: [ANNOUNCEMENT] Console_CommandLine-1.1.3 (stable) Released.
Next: [ANNOUNCEMENT] Services_GeoNames-1.0.0 (stable) Released.
From: "PEAR Announce" on 10 Apr 2010 07:12 The new PEAR package Testing_DocTest-0.5.0 (beta) has been released at http://pear.php.net/. Release notes ------------- * implemented request #16393 Better support for file-level code (thanks to Dave Walton for the patch), * fixed package.xml to allow installation via pyrus. Package Info ------------ Testing_DocTest allows the developer to write unit tests directly in the <code></code> blocs of your functions, classes and class methods doc comments. It comes with a default runner (phpdt) that will parse all your <code></code> blocs and will run the extracted tests. Running tests is as simple as: $ phpdt /path/to/your/code There are several advantages in using Testing_DocTest: * it makes unit tests writing funnier, easier and quicker (there's no infrastructure to setup, you just install the package, write your code examples tests and you're done !); * it ensures that doc comments are up-to-date by verifying that all examples work as documented; * it enforces writing of tutorial documentation, liberally illustrated with input-output examples. Related Links ------------- Package home: http://pear.php.net/package/Testing_DocTest Changelog: http://pear.php.net/package/Testing_DocTest/download/0.5.0 Download: http://download.pear.php.net/package/Testing_DocTest-0.5.0.tgz Authors ------- David Jean Louis (lead) |