News Feed
Sections




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

Jani Hartikainen's Blog:
Unit testing 3 Writing tests for existing code
June 18, 2009 @ 09:33:40

On his blog today, Jani Hartikainen has posted the third part of his series looking at unit testing in PHP applications.

Now that you know what unit testing is and how to write and run tests, it's time to look at writing tests in more depth. Today we'll take an example class and write tests for it. We'll also introduce some common testing methodologies.

He creates the sample test (this one), makes a sample testing class for it and looks at the difference between testing code and testing behavior.

0 comments voice your opinion now!
example tutorial unittesting


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: AJAX Chat Tutorial Part 2

Matthew Weir O'Phinney's Blog: Cgiapp2 Tutorial 2 - Pluggable Applications

php|architect: Stored Procedure Programming for MySQL5 (Part 1)

Padraic Brady's Blog: An Example Zend Framework Blog App - Part 3: A Simple Hello World Tutorial

Rob Allen's Blog: Zend Framework Tutorials (an Update and Zend_Auth)


Community Events





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


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

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