News Feed
Sections




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

NetTuts.com:
Let's TDD a Simple App in PHP
August 07, 2012 @ 10:18:07

On NetTuts.com there's a new tutorial that wants to show you a practical approach to using TDD in your development (test-driven development) through a simple project.

In this tutorial, I will present an end-to-end example of a simple application - made strictly with TDD in PHP. I will walk you through each step, one at a time, while explaining the decisions I made in order to get the task done. The example closely follows the rules of TDD: write tests, write code, refactor.

They start off by defining what TDD is (three core rules) and how the PHPUnit tool makes it easy in PHP. They use NetBeans in their examples, but it can be done similarly in any other ID (or command line). They start with some first tests - checking for word wrapping on short string and empty string handling.

0 comments voice your opinion now!
tdd testdriven development tutorial unittest sample application


blog comments powered by Disqus

Similar Posts

Job Posting: ManicMelon.com Seeks Mid-Senior LAMP Web Application Developer (Overland Park, KS)

Zend: Extension Writing Tutorials - Resources (Part 3)

DevShed: Positioning Strings with the show_xy() Method in PDF Documents with PHP 5

Gonzalo Ayuso: Integrating WebSockets with PHP applications. Silex and socket.io playing together.

Greebo.net: Converting your PHP app to MySQLi prepared statements


Community Events





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


install introduction language framework laravel podcast testing opinion interview experience api list threedevsandamaybe release symfony2 developer code series community unittest

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