|
|
Warning: This package management website is not protected with a password, this is a MAJOR security risk. Please read the README.
|
Package
|
Testing_DocTest
|
Installed
|
- no -
|
Latest
|
0.6.0
|
License
|
MIT
|
Summary
|
A Unit Test framework for writing tests in your php code docstrings.
|
Description
|
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.
|
Dependencies
|
PHP Version: 5.2.2 or newer PEAR Package: pear.php.net/PEAR 1.4.0 or newer PEAR Package: pear.php.net/Console_CommandLine 1.0.0RC3 or newer PHP Extension: tokenizer
|
Options
|
|
More
|
Extended Package Information
pear.php.net Developer Documentation
pear.php.net Package Manual
|
|
|