Login   Register  
PHP Classes
elePHPant
Icontem

Unit Tests for mission critical routines

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Log watcher  >  Log watcher package blog  >  10 Steps to properly ...  >  All threads  >  Unit Tests for mission critical routines  >  (Un) Subscribe thread alerts  
Subject:Unit Tests for mission critical routines
Summary:Unit Tests for mission critical routines
Messages:2
Author:Ralf Strehle
Date:2013-05-30 14:20:25
Update:2013-05-31 15:45:00
 

  1. Unit Tests for mission critical routines   Reply   Report abuse  
Picture of Ralf Strehle
Ralf Strehle
2013-05-31 13:20:39
It's a good idea to run Unit Tests for mission critical routines, e.g. with https://github.com/sebastianbergmann/phpunit/. You can read more about it at http://phpunit.de/manual/current/en/index.html

Of course it's much more work but it's also great once you have it up and running.

Many PHP Frameworks are using Unit Tests now and have PHP Unit built in.

  2. Re: Unit Tests for mission critical routines   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2013-05-31 15:45:00 - In reply to message 1 from Ralf Strehle
Right, as I said in the ideal world you should always create tests for all the code you use to catch bugs as soon as possible. If you do not have time to create extensive tests, just do that, focus in the most critical code that can fail.