TDD-PHP-Sample icon indicating copy to clipboard operation
TDD-PHP-Sample copied to clipboard

Test Drive Development with PHP using PHPUnit as the testing tool. Step by step walkthrough of how to implement a TDD for a simple shopping cart.

Test Drive Development in PHP - Sample Project

This is written with PHPUnit (http://www.phpunit.de).

Installation:

$ pear config-set auto_discover 1
$ pear install pear.phpunit.de/PHPUnit

$ pear install phpunit/PHPUnit_SkeletonGenerator
$ pear install phpunit/PHPUnit_Selenium
$ pear install phpunit/PHPUnit_Story

Walk Through:

  1. Clone the repository

     $ git clone git://github.com/miccheng/TDD-PHP-Sample.git
    
  2. Checkout steps and look at the code changes

     $ git checkout step1
     $ git checkout step2
     $ git checkout step3
     ...
    

Contact Details:

Singapore PHP User Group
Facebook Group: https://www.facebook.com/groups/sghypertextpreprocessors/

Michael Cheng
Twitter: @coderkungfu
Email: [email protected]