The Artima Developer Community
Sponsored Link

Web Buzz Forum
PHPUnit

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Douglas Clifton

Posts: 861
Nickname: dwclifton
Registered: May, 2005

Douglas Clifton is a freelance Web programmer and writer
PHPUnit Posted: Dec 14, 2005 9:23 PM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Douglas Clifton.
Original Post: PHPUnit
Feed Title: blogZero
Feed URL: http://loadaveragezero.com/app/s9y/index.php?/feeds/index.rss1
Feed Description: Web Development News, Culture and Opinion
Latest Web Buzz Posts
Latest Web Buzz Posts by Douglas Clifton
Latest Posts From blogZero

Advertisement

phpunit While I may not take a formal, academic approach to software development methods, I am a big fan of unit testing. Programmers who design, code and then build a complete application before doing any testing baffle me. In general, my approach (which should sound familiar) is to break a large project down into logical and manageable components, then further break these down into discrete parts that are related to a one or two data structures. The data could be based on XML, but more often it is an SQL database that represents the entire project. My next step is to design and write one function or method at a time, and immediately test the function to make sure it behaves as expected. I will repeat this procedure until that module is complete, then test the module as a whole. After all the modules are complete, I begin testing to make sure they all interact as designed.

Then it's time to throw the thing to the wolves—some users. Mixed in to all of this are testing issues not necessarily related to logical or other errors (bugs), but perhaps usability problems, missing or new features, and so on. I have found that this unit testing and iterative process much more effective than a monolithic approach.

If you are looking for some pointers on automating the process of unit testing with your PHP projects, consider Sebastian Bergmann's PHPUnit. The complete book is available online, and the pocket guide is only $10 US.

phpunit

Along with unit testing, I'm also a huge fan of these O'Reilly "pocket rockets."

Read: PHPUnit

Topic: Using LinPhone on Ubuntu Breezy with SipGate Previous Topic   Next Topic Topic: Batch Categories for Wordpress, updated for 1.5.2

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use