PHP Object Unit Testing

 –  Comments Off on PHP Object Unit Testing

I recently found a PHP tool that might actually be useful to a lot of developers in helping to keep their PHP code clean and help with bug tracking and diagnosis.  With PHP 5, we now have the ability to delve quite heavily into OOP based scripting.  This basically means creating PHP code as Objects instead of spaghetti code.  The tool I found recently is a simple framework for testing your newly created PHP objects.  It is called SimpleTest.

Basically, you can build your PHP objects and use this tool to create test cases in order to ensure that future upgrades don’t break existing code. This is called Unit Testing.  Check it out.  I’d love to know how you like it.

Related Reading:

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)It hasn't taken Web developers long to discover that when it comes to creating dynamic, database-driven Web sites, MySQL and PHP provide a winning ope... Read More >
Programming PHP: Creating Dynamic Web PagesProgramming PHP: Creating Dynamic Web Pages

This updated edition teaches everything you need to know to create effective web applications with the latest features in PHP 5.x. You’ll start w... Read More >

Murach's PHP and MySQL, 2nd EditionMurach's PHP and MySQL, 2nd Edition

"I can't count how many PHP books I have purchased over the years trying to learn the language. Murach's was the first book that helped me grasp th... Read More >

Filed in: PHP Programming, Webmaster Tools

Comments are closed.