Showing posts with label Unit Testing. Show all posts
Showing posts with label Unit Testing. Show all posts

Friday, May 21, 2010

A test is NOT a Unit Test when...


  • It talks to a database

  • It communicates across a network

  • It touches the file system

  • You have to do special things to your environment (such as editing config files) to run it



Tests that do these things are integration tests, not unit tests. [Shore & Warden 2007]

Wednesday, May 19, 2010

Unit Tests in PHP

Are you considering unit testing with your next PHP project?

Here's a xUnit family member:

http://www.phpunit.de/

About Me

I produce and engineer games and applications. | Portfolio | LinkedIn