Sophie

Sophie

distrib > PLD > th > ppc > by-pkgid > 07cb629feb0ff9fd7fd5dfa9459c6b89

php-pear-Testing_DocTest-0.6.0-1.noarch.rpm

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.

In PEAR status of this package is: beta.

Sources packages:

Other version of this rpm: