News Feed
Sections




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

Stuart Herbert's Blog:
PHP Components PHP Components Shipping Unit Tests With Your Component
August 15, 2011 @ 09:57:46

Stuart Herbert has his latest post in his "PHP Components" series on his blog today - a recommendation to include unit tests along with the release of you component.

I'm now going under the bonnet of our components, and looking at the different file roles that the PEAR installer expects to find when we distribute our component as a PEAR-compatible package. One of the most important file roles allows you to ship your tests with your package - and it's vital that this is something that you get in the habit of doing routinely.

He recommends "testing your code and shipping your tests" along with the component(s) you're releasing. Not only does it help you create a better quality end result but also makes it simpler for other developers to make changes and know they're not breaking things. He describes unit tests for those not familiar and includes a specific example of the CommandLineLibrary and its related tests.

0 comments voice your opinion now!
component unittest ship include introduction commandlinelibrary


blog comments powered by Disqus

Similar Posts

Ed Finkler's Blog: Bug in Zend Studio 5.5ís php.ini

Jani Hartikainen's Blog: Unit testing part 2: Writing and running tests

Community News: CakePHP Project Launches "The Show" (Live/Podcast Series)

Robert Basic's Blog: Debugging Zend Framework unit tests with Xdebug and NetBeans

NetTuts.com: All About Mocking with PHPUnit


Community Events





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


symfony zendserver release community interview update series library laravel language tips deployment introduction install package opinion podcast framework list api

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