Code and sample apps to simplify Test Driven Development and unit testing with Drupal
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This repository contains PHP code designed to make Test Driven Development with Drupal easy and enjoyable. Among other things, we will be applying testing ideas from the Ruby on Rails framework to Drupal/PHP. We'll also be writing sample apps to illustrate how to use the tools here to develop Drupal modules using TDD and PHPUnit.

For now we have a single PHP file,, which allows you to use MySQL transactions and a separate test database for running PHPUnit test cases in the Drupal framework.

For more information or to provide feedback/bugs, see:

As of the current release you can use in Drupal 5 and 6.

Copyright (c) 2009 [Patrick Shaughnessy, Mark Bennett], released under the MIT license