News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
An Introduction to the Art of Unit Testing in PHP
December 04, 2007 @ 10:11:00

On the Zend Developer Zone there's a new article/tutorial posted from Padraic Brady introducing you to the art of unit testing your applications and development.

Testing is an essential aspect of developing in any programming language. If you don't test your source code then how can you verify it works as expected? Manual testing can only be performed irregularly and usually only in limited ways. The answer to testing source code regularly, and in depth, is to write automated tests which can be frequently executed.

He talks about testing frameworks, its filtering in to practices on larger community projects, and a few fallacies that most people have about unit testing (including time involved, difficulty with complex code and that it's just boring). He also includes some examples of what a unit test might look like for some simple code - including explanations.

He rounds it off with some of the "why use unit tests" reasons he's found over the time he's used them like:

  • Automated tests can be run as frequently as required
  • Unit Testing can improve the design of code especially with Test-Driven Development
  • Unit Testing forces you to confront the problem head on
  • Unit Testing inspires confidence!
0 comments voice your opinion now!
unittest introduction tutorial fallacies reasons unittest introduction tutorial fallacies reasons


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: A Look at Hack, the PHP Replacement in HHVM

DevShed: Comparing Files and Databases with PHP Benchmarking Applications

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 2

Deepak Radhakrishnan\'s Blog: Configuring Apache - PHP - MySQL on Windows (WAMP Configuration)

DevShed: Building a Content Management System with Code Igniter


Community Events





Don't see your event here?
Let us know!


application unittest configure podcast api threedevsandamaybe code list install interview wordpress library introduction community laravel release series symfony developer language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework