What's new? | Help | Directory | Sign in
Google
testing-doctest
A Unit Test framework for writing tests in your php code docstrings.
  
    
Show all Featured Wiki Pages:
Documentation
Join project
Project owners:
  izimobil

Testing_DocTest is now an offcial PEAR package, please report bugs to the PEAR bug tracker.

Introduction

Testing_DocTest allows the developer to write unit tests directly in the <code></code> blocs of your PHP functions, classes and class methods.

It comes with a default runner 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:

Installation

Just run:

$ pear install -f Testing_DocTest

And to uninstall:

$ pear uninstall Testing_DocTest

Documentation

Examples