News Feed
Sections




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

Brandon Savage's Blog:
Peer Review Testable Code And Architecture
September 15, 2009 @ 07:50:55

In this latest post in his "Peer Review" series Brandon Savage looks at things that can make the sample code he's been working with easier to test.

Now that we've worked out the abstraction issues and the logic questions, we should take a moment to focus our attention on a few of the issues relating to the architecture and testability of the class we've worked out.

He mentions changes to a call to get_included_files, a bit of code requiring magic quotes, and changes to the code to make writing using tests simpler (like injecting objects rather than creating them and writing a unit test every time a bug is found so it doesn't happen again).

0 comments voice your opinion now!
peer review test unittest architecture


blog comments powered by Disqus

Similar Posts

Brandon Savage's Blog: Peer Review: Looking At Abstraction - Redux

Chris Shiflett\'s Blog: PHP Security Architecture

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPUnit part 3

Mike Lively's Blog: Pear Channel set up for Phake

Alexander Netkachev's Blog: Automatic testing of MVC applications created with Zend Framework


Community Events

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


laravel configure opinion release api framework interview podcast part2 community symfony2 example performance introduction php7 application conference library series voicesoftheelephpant

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