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:
Testing your PHP Codebase with EnhancePHP
January 23, 2012 @ 09:25:45

On NetTuts.com today a new tutorial has been posted to help you test your applications and make it a simpler process using the EnhancePHP framework. EnhancePHP is a lightweight Open Source PHP unit testing framework with support for mocks and stubs.

You know it; I know it. We should be testing our code more than we do. Part of the reason we don't, I think, is that we don't know exactly how. Well, I'm getting rid of that excuse today: I'm teaching you to test your PHP with the EnhancePHP framework.

He shows you how to download it, get it installed and creates a simple structure to do some TDD (Test-Driven Development) with it. His tests check three things - valid email addresses, username restrictions and phone number formatting. He also includes a look at creating mocks/stubs for a "scoreboard" example.

You can find out more about the EnhancePHP framework on its github page.

0 comments voice your opinion now!
unittest enhancephp framework tdd tutorial


blog comments powered by Disqus

Similar Posts

IBM developerWorks: Building the DB2 Health Monitor Sample Application for PHP (Part 2)

Felix Geisendorfer's Blog: Enforce utf8 for multiple db connections

Mathias Verraes: Named Constructors in PHP

Zend Developer Zone: ZendCon 2009 Updates (New Keynote & Framework Shootout)

Zend Developer Zone: Creating Template-Based Applications with HTML_Template_Flexy


Community Events





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


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

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