Search This Blog

Sunday, April 11, 2010

Using PHPUnit


  1. phpunit –skeleton-test [class name] [yourfilename.php] (This will create a layout for test case with a class name you have given as a file named your filename suffixed “Test”)
  2. You can the file to check for results how may passed and how many failed
  3. We can add any number of cases for each function in the class as in the example below

No comments:

Post a Comment